Hi i took your script and altered it.
--serverscript
local part = workspace.Part
local remoteEvent = game.ReplicatedStorage.RemoteEvent
local gui = game.StarterGui.ScreenGui.Frame
part.Touched:Connect(function(objectThatTouchedMe)
if objectThatTouchedMe.Parent:FindFirstChild("Humanoid") then
local client = game.Players:GetPlayerFromCharacter(objectThatTouchedMe.Parent)
gui.Visible = false
remoteEvent:FireClient(client)
end
end)
--localscript
local remotevent = game.ReplicatedStorage.RemoteEvent
local gui = game.StarterGui.ScreenGui.Frame
local function visiblegui ()
print("recieved remote call")
end
remotevent.OnClientEvent:Connect(visiblegui)
doesnt work can you tell why?
it prints 'recieved remote call' but the frame doesnt disappear.

1 comment
Ohh i get it now, thanks!