Advertisement
HowToRoblox

MousePositionFinder

Apr 1st, 2020
1,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local remoteEvent = game.ReplicatedStorage.OnTeleportClick
  2.  
  3.  
  4. local tool = script.Parent
  5.  
  6. local mouse = game.Players.LocalPlayer:GetMouse()
  7.  
  8.  
  9. tool.Activated:Connect(function()
  10.    
  11.    
  12.     local pos = mouse.Hit.Position
  13.    
  14.    
  15.     remoteEvent:FireServer(pos)
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement