just to lyk, I'm very new to scripting. I have the following script in workspace
"local Players = game:GetService("Players")
local Remote = game:GetService("ReplicatedStorage").UITrigger1
local ws = game:GetService("Workspace")
local Box = ws.Area1
local SpawnPart = Box.Spawn
local TeleportA = Box.Folder.PartA
TeleportA.CanTouch = true
TeleportA.Touched:Connect(function(hit)
local WhoTouched = hit.Parent:FindFirstChild("HumanoidRootPart")
if WhoTouched then
WhoTouched.CFrame = SpawnPart.CFrame
TeleportA.CanTouch = false
TeleportB.CanTouch = false
TeleportC.CanTouch = false
TeleportD.CanTouch = false
Remote:FireClient()
end
end)
"
Basically when the player touches a part I need certain GUI to become visible.
Heres the LocalScript "local Remote = game:GetService("ReplicatedStorage").UITrigger1
local UI = game:GetService("StarterGui").Teleporters.SG.Frame
Remote.OnClientEvent:Connect(function()
UI.Visible = true
end)
"
Why is this not working?
** You are now Level 3! **