Hey there, new scripter here,

I've created GUI pop up Guis to appear OnTouched to a Part, However i want it to be Visible to the whole server when 1 Player triggers it,

As of now its just Visible for whoever touches it.

Is that an easy change?

local book1 = script.Parent
debounce=true
script.Parent.Touched:Connect(function(hit)
	if debounce == true then
        debounce = false 
    if game.Players:GetPlayerFromCharacter(hit.Parent) then
        local player = game.Players:GetPlayerFromCharacter(hit.Parent)

        game.ReplicatedStorage.bookCollected:FireClient(player)
		book1:Destroy()
		wait(5)
		debounce = true
		
		
	end	
   		end
			end)

Thanks,

5 comments

0

hmmm

0

Seems like what im looking for, I just replace it to this?, game.ReplicatedStorage.stuffCollected.OnClientEvent.FireAllClients:Connect(function()

0

I love the if debounce == true then. It's as if debounce isn't a boolean that can be checked already...

0

Got it fellas :thumbs_up: Thanks again