Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = owner
- local Mouse = nil
- local Ev = Player:FindFirstChild("MouseEvent_Phoe") or Instance.new("RemoteEvent", Player)
- Ev.Name = "MouseEvent_Phoe"
- local MouseStuff = [==[
- local player = game.Players.LocalPlayer
- local ev = player:WaitForChild("MouseEvent_Phoe")
- local mo = player:GetMouse
- local up = false
- local down = false
- local up2 = false
- local down2 = false
- local key = nil
- local hold = false
- mo.Move:Connect(function()
- ev:FireServer({Pos = mouse.Hit.p, Hit = mouse.Hit, Mdown = down, Mup = up, Mdown2 = down2, Mup2 = up2, orientation = mouse.Origin, X = mouse.X, Y = mouse.Y, Key = key, Hold = hold})
- mo.Idle:Connect(function()
- ev:FireServer({Pos = mouse.Hit.p, Hit = mouse.Hit, Mdown = down, Mup = up, Mdown2 = down2, Mup2 = up2, orientation = mouse.Origin, X = mouse.X, Y = mouse.Y, Key = key, Hold = hold})
- mo.Button1Down:Connect(function()
- up = false
- down = true
- end)
- mo.Button2Down:Connect(function()
- up2 = false
- down2 = true
- end)
- mo.Button1Up:Connect(function()
- up = true
- down = false
- end)
- mo.Button2Up:Connect(function()
- up2 = true
- down2 = false
- end)
- mo.KeyDown:Connect(function(k)
- key = k
- hold = true
- end)
- mo.KeyUp:Connect(function()
- key = nil
- hold = false
- end)
- ]==]
- NLS(MouseStuff, Player.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement