Advertisement
okban

Untitled

Feb 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. part = nil
  4. bp = nil
  5. particles = nil
  6. mouse.Button1Down:connect(function()
  7. if plr.Character.Parent == workspace.Camera then
  8. if mouse ~= nil then
  9. if mouse.Target ~= nil then
  10. part = mouse.Target
  11. bp = Instance.new("BodyPosition",part)
  12. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  13. bp.Position = part.Position
  14. particles = Instance.new("ParticleEmitter",part)
  15. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  16. particles.Size = NumberSequence.new(1)
  17. particles.Texture = "rbxassetid://292289455"
  18. particles.VelocitySpread = 360
  19. particles.Speed = NumberRange.new(0)
  20. particles.RotSpeed = NumberRange.new(0)
  21. particles.Rotation = NumberRange.new(0)
  22. particles.Rate = 250
  23. particles.Lifetime = NumberRange.new(.2,.4)
  24. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  25. dwn = true
  26. end
  27. end
  28. while dwn == true do
  29. wait()
  30. bp.Position = mouse.hit.p
  31. if part then
  32. if part.Parent:FindFirstChildOfClass("Humanoid") then
  33. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  34. end
  35. end
  36. end
  37. end
  38. end)
  39. mouse.Button1Up:connect(function()
  40. dwn = false
  41. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  42. if bp then bp:Destroy() end
  43. if particles then particles:Destroy() end
  44. end)
  45. base = Instance.new("ScreenGui",plr.PlayerGui)
  46. bbg = Instance.new("BillboardGui",plr.Character.Head)
  47. bbg.Size = UDim2.new(0,200,0,50)
  48. bbg.StudsOffset = Vector3.new(0,3,0)
  49. bbgTl = Instance.new("TextLabel",bbg)
  50. bbgTl.BackgroundTransparency = 1
  51. bbgTl.Size = UDim2.new(10,0,1,0)
  52. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  53. bbgTl.Font = "Code"
  54. bbgTl.Text = " "
  55. bbgTl.TextSize = 25
  56. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  57. bbgTl.TextColor3 = Color3.new(0,0,0)
  58. bbgTl.TextStrokeTransparency = 0
  59. bbgTl.TextWrapped = true
  60. plr.Chatted:connect(function(msg)
  61. bbgTl.Text = msg
  62. wait(5)
  63. if bbgTl.Text == msg then
  64. bbgTl.Text = " "
  65. end
  66. end)
  67. touchCounter = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement