Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Both have errors, make sure you watch the full video for the fixes!
- --ScriptService
- game.ReplicatedStorage.Teleport.OnServerEvent:Connect(function(player, location)
- player.Character.HumanoidRootPart.Position = game.Workspace.TeleportLocations:FindFirstChild(location)
- end)
- --Local Script
- for i,v in pairs(script.Parent.Frame:GetChildren()) do
- if v:IsA("TextLabel") then
- v.MouseButton1Click:Connect(function(player)
- game.ReplicatedStorage.Teleport:FireServer(v.Name)
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment