Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("g")
- local UserInputService = game:GetService("UserInputService")
- Player = owner
- Players = game:GetService("Players")
- Char = owner.Character
- Humanoid = Char.Humanoid
- Head = Char.Head
- Pos = Humanoid.TargetPoint
- Look = (Pos - Head.Position).Unit
- LPlayer = Players.LocalPlayer
- print(LPlayer)
- print(owner)
- UserInputService.InputBegan:Connect(function(input,busy)
- print("e")
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- print("work pls")
- local e = Instance.new("Part",workspace)
- e.Size = Vector3.new(5,5,5)
- e.Position = Player.Character.HumanoidRootPart.Position + Vector3.new(0,4,0)
- e.Velocity = look*175
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement