Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local remoteEvent = game.ReplicatedStorage.OnTeleportClick
- local tool = script.Parent
- local mouse = game.Players.LocalPlayer:GetMouse()
- tool.Activated:Connect(function()
- local pos = mouse.Hit.Position
- remoteEvent:FireServer(pos)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement