Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plyr = game.Players.LocalPlayer
- mouse = plyr:GetMouse()
- event = workspace.GrabServer.event
- md = false
- tar = nil
- point = Vector3.new()
- mouse.Button1Down:Connect(function()
- tar = mouse.Target
- md = true
- point = mouse.Hit.Position - tar.Position
- event:FireServer(true,tar,mouse.Hit.Position,Vector2.new(mouse.X,mouse.Y), workspace.CurrentCamera.CFrame)
- end)
- mouse.Button1Up:Connect(function()
- md = false
- event:FireServer(false,tar)
- end)
- while wait() do
- if md then
- event:FireServer(true,tar,mouse.Hit.Position,Vector2.new(mouse.X,mouse.Y), workspace.CurrentCamera.CFrame,workspace.CurrentCamera.ViewportSize)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement