Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Im trying to make a local dialouge script that clones a tool but it does not work how fix?

Every thing it works but the cloneing part. I know that cloning from within local scripts doesnt work so how do I fix this?

local button = script.Parent.Parent.Gatorade local gui = script.Parent.Parent.Parent local players = game:GetService("Players") local player = script.Parent.Parent.Parent.Parent.Parent local backpack = script.Parent.Parent.Parent.Parent.Parent.Backpack local gat = script.Parent.Parent.Parent.GatoradeEvent

button.MouseButton1Click:Connect(function() if player.leaderstats.Cash.Value >= 2 then local cash = player.leaderstats.Cash

	cash.Value = cash.Value - 2
	gat:Fire()
	print("gatfired")

end end)

1 comment

0

Please post the section of the code that clones the tool please.

1 answer

You can try to add a remote event and fire it via the local script, then give the tool in a server script.

This discussion is preserved as it was. New answers, comments, and votes are closed.