Okay so ive got the tools stored,In the ServerStorage. Can you spot and debug it for me please? It works in solomode but not in Online mode? Here it is : Note : This is in localScript inside starterpack First up,The OwnerOnly Machete.

Player = script.Parent.Parent
mouse = Player:GetMouse()
function onKeyDown(key)
	if Player.Name == "iLegimate" then
		
		key:lower()
if key == "k" then 
	q = game.ServerStorage["Tool : Backup"].Tools.Machete:clone()
	q.Parent = Player.Backpack
end

end
end

mouse.KeyDown:connect(onKeyDown)
Player = script.Parent.Parent
mouse = Player:GetMouse()
function onKeyDown(key)
		key:lower()
if key == "l" then 
	U = game.ServerStorage["Tool : Backup"].Tools.Spear:clone()
	U.Parent = Player.Backpack	
end

end

mouse.KeyDown:connect(onKeyDown)
~~~~~~~~~~~~~~~~~

Anybody help out?



Second up,The Public spear.

1 comment

0

Note : The ~'s are the LUA script signs in the scripting helpers text.doc,Its not in the script. Therefore those two lines seperate.