I have the same code put into a script and it works fine. However I want to use a local script to only effect the Client. Here is what I have:


workspace.LootBox.AREA.Touched:Connect(function()
	
	workspace.LootBox.Part.BillboardGui.Enabled = true
	wait(1)
	end)

		workspace.LootBox.AREA.TouchEnded:Connect(function()	
			workspace.LootBox.Part.BillboardGui.Enabled = false
		end)

Is there something that the local script can't read in this?

2 comments

0

Where is the LocalScript located? LocalScripts can only run in a Player's Backpack, StarterGui, StarterPlayersScripts, StarterCharacterScripts, ReplicatedFirst, the Upcoming ReplicatedScriptService, and a Player's Character.

0

Thanks