140 lines
3.7 KiB
Plaintext
140 lines
3.7 KiB
Plaintext
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
|
|
<External>null</External>
|
|
<External>nil</External>
|
|
<Item class="HopperBin" referent="RBX0">
|
|
<Properties>
|
|
<bool name="Active">false</bool>
|
|
<token name="BinType">0</token>
|
|
<string name="Name">ToolGiver</string>
|
|
<Content name="TextureId"><url>http://www.roblox.com/asset/?id=1329649981</url></Content>
|
|
</Properties>
|
|
<Item class="Script" referent="RBX1">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Reset</string>
|
|
<ProtectedString name="Source">--clockwork
|
|
|
|
bin = script.Parent
|
|
|
|
|
|
|
|
function onButton1Down(mouse)
|
|
|
|
	local player = game.Players.LocalPlayer
|
|
	if player == nil then return end
|
|
		
|
|
	end
|
|
|
|
function onSelected(mouse)
|
|
	mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
|
|
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
|
|
	mouse.KeyDown:connect(KeyFunctions)
|
|
end
|
|
|
|
function KeyFunctions(key)
|
|
	if key == "z" then
|
|
		Give(6568) --Cheezburger
|
|
	end
|
|
	if key == "x" then
|
|
		Give(6564) --Bloxilicious Bubble Gum
|
|
	end
|
|
	if key == "c" then
|
|
		Give(6560) --Space Sandwich
|
|
	end
|
|
	if key == "v" then
|
|
		Give(6554) --Chocolate Milk
|
|
	end
|
|
	if key == "b" then
|
|
		Give(6548) --Taco
|
|
	end
|
|
	if key == "n" then
|
|
		Give(6546) --Bloxy Cola
|
|
	end
|
|
	if key == "g" then
|
|
		Give(6550) --Gravity Coil
|
|
	end
|
|
	if key == "p" then
|
|
		Give(15655) --shhhhhh
|
|
	end
|
|
	if key == "k" then
|
|
Give(18614) --Katana
|
|
	end
|
|
	if key == "m" then
|
|
		Give(48596336) --Morph Potion
|
|
	end
|
|
	if key == "l" then
|
|
		s = Instance.new("Sound")
|
|
		s.Name = "Sound"
|
|
		s.SoundId = "http://assetgame.roblox.com/asset/?id=27697707"
|
|
		s.Volume = 100
|
|
		s.Looped = false
|
|
		s.archivable = true
|
|
		s.PlayOnRemove = false
|
|
		s.Parent = ToolGiver
|
|
		wait(1)
|
|
		s:play()
|
|
	end
|
|
end
|
|
|
|
function Give(id)
|
|
	M = Game:GetService("InsertService"):LoadAsset(id)
|
|
	M.Parent = Game.Workspace
|
|
	M:MakeJoints()
|
|
	M:MoveTo(Game.Workspace.BrentDaMage.Torso.Position + Vector3.new(0, 0, 0))
|
|
end
|
|
|
|
bin.Selected:connect(onSelected)
|
|
|
|
</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Script" referent="RBX2">
|
|
<Properties>
|
|
<bool name="Disabled">false</bool>
|
|
<Content name="LinkedSource"><null></null></Content>
|
|
<string name="Name">Script</string>
|
|
<ProtectedString name="Source">local debounce = false
|
|
|
|
function getPlayer(humanoid)
|
|
local players = game.Players:children()
|
|
for i = 1, #players do
|
|
if players[i].Character.Humanoid == humanoid then return players[i] end
|
|
end
|
|
return nil
|
|
end
|
|
|
|
function onTouch(part)
|
|
|
|
local human = part.Parent:findFirstChild("Humanoid")
|
|
if (human ~= nil) and debounce == false then
|
|
|
|
debounce = true
|
|
|
|
local player = getPlayer(human)
|
|
|
|
if (player == nil) then return end
|
|
|
|
script.Parent:clone().Parent = player.Backpack
|
|
|
|
wait(2)
|
|
debounce = false
|
|
end
|
|
end
|
|
|
|
|
|
script.Parent.Parent.Touched:connect(onTouch)</ProtectedString>
|
|
</Properties>
|
|
</Item>
|
|
<Item class="Sound" referent="RBX3">
|
|
<Properties>
|
|
<bool name="Looped">false</bool>
|
|
<string name="Name">oof</string>
|
|
<float name="Pitch">1</float>
|
|
<bool name="PlayOnRemove">false</bool>
|
|
<Content name="SoundId"><url>http://www.roblox.com/asset/?id=915288747</url></Content>
|
|
<float name="Volume">1</float>
|
|
</Properties>
|
|
</Item>
|
|
</Item>
|
|
</roblox> |