Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local key = Enum.KeyCode.LeftControl
  2. local y = Instance.new("Part")
  3. y.Size = Vector3.new(4,1,4)
  4. y.Material = Enum.Material.Neon
  5. y.Transparency = 0.95
  6. y.Anchored = true
  7.  
  8. local r = game:GetService("RunService")
  9. local c = game:GetService("ContextActionService")
  10. local p = game:GetService("Players").LocalPlayer
  11. local d = game:GetService("Debris")
  12.  
  13. function xyz(actionName,inputState,inputObj)
  14. if inputState == Enum.UserInputState.Begin then
  15. r:BindToRenderStep("xyz",1,function()
  16. local x = y:Clone()
  17. x.Color = Color3.fromHSV(tick()%1,1,1)
  18. x.CFrame = p.Character.HumanoidRootPart.CFrame - Vector3.new(0,3.5)
  19. x.Parent = workspace
  20. d:AddItem(x,3)
  21. end)
  22. end
  23. if inputState == Enum.UserInputState.End then
  24. r:UnbindFromRenderStep("xyz")
  25. end
  26. end
  27. c:BindAction("xyz",xyz,false,key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement