Welcome to the Forums!
Join thousands of other Roblox members with a free account.
Create Forum Account

Whats wrong with the script?

  • This website was created by Roblox members to replace the official forums (because Roblox shut them down) Join us if you like Roblox!

dillpill123hhh

New Member
Reputation: 0 / 0 / 0
Jun 5, 2021
26
4
3
Roblox
dillpill123hhh
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local remoteEvent = game.ReplicatedStorage.RemoteEvent

local frame = script.Parent


function FadeGUI(Player)

frame.Visible = true

for i = 0, 1, 0.1 do



frame.BackgroundTransparency = i

wait(.05)

end

frame.Visible = false

end


remoteEvent.OnClientEvent:Connect(function(Player)

FadeGUI(Player)



end)

It is in a local script. I only want it to show for the person that is teleporting. The teleport part is the the other script in the ProximityPrompt.