Advertisement
jerrellsuper123

Untitled

Jul 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local Player = owner
  2. local Character = Player.Character
  3. local InputServ = game:GetService("UserInputService")
  4.  
  5. local Part = Instance.new("Part")
  6. Part.BrickColor = BrickColor.new("Really red")
  7.  
  8. Part.Touched:Connect(function(hit)
  9. if hit.Parent.Humanoid ~= nil then
  10. hit.Parent.Humanoid.Health = 0
  11. end
  12. end)
  13.  
  14. InputServ.InputBegan:Connect(function(Input)
  15. if Input.KeyCode == Enum.KeyCode.F then
  16. Part.Parent = workspace
  17. p = Character.Head.CFrame * Vector3.new(0,5,0)
  18. Part.CFrame = Vector3.new(p.x,p.y,p.z)
  19. end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement