Advertisement
Guest User

Untitled

a guest
May 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1.  
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. local Mouse = Player:GetMouse()
  8. local LeftArm = Character["Left Arm"]
  9. local RightArm = Character["Right Arm"]
  10. local LeftLeg = Character["Left Leg"]
  11. local RightLeg = Character["Right Leg"]
  12. local Head = Character.Head
  13. local Torso = Character.Torso
  14. local Camera = game.Workspace.CurrentCamera
  15. local RootPart = Character.HumanoidRootPart
  16. local RootJoint = RootPart.RootJoint
  17. local attack = false
  18. local Anim = 'Idle'
  19. local attacktype = 1
  20. local delays = false
  21. local play = true
  22. local targetted = nil
  23. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  24. local velocity = RootPart.Velocity.y
  25. local sine = 0
  26. local change = 1
  27. local doe = 0
  28. local Create = LoadLibrary("RbxUtility").Create
  29. Humanoid.WalkSpeed = 8
  30. local m = Create("Model"){
  31. Parent = Character,
  32. Name = "WeaponModel",
  33.  
  34. function ShowDamage(Pos, Text, Time, Color)
  35. local Rate = (1 / 30)
  36. local Pos = (Pos or Vector3.new(0, 0, 0))
  37. local Text = (Text or "")
  38. local Time = (Time or 2)
  39. local Color = (Color or Color3.new(1, 0, 1))
  40. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  41. EffectPart.Anchored = true
  42. local BillboardGui = Create("BillboardGui"){
  43. Size = UDim2.new(3, 0, 3, 0),
  44. Adornee = EffectPart,
  45. Parent = EffectPart,
  46. }
  47. local TextLabel = Create("TextLabel"){
  48. BackgroundTransparency = 1,
  49. Size = UDim2.new(1, 0, 1, 0),
  50. Text = Text,
  51. Font = "SciFi",
  52. TextColor3 = Color,
  53. TextScaled = true,
  54. Parent = BillboardGui,
  55. }
  56. game.Debris:AddItem(EffectPart, (Time))
  57. EffectPart.Parent = game:GetService("Workspace")
  58. delay(0, function()
  59. local Frames = (Time / Rate)
  60. for Frame = 1, Frames do
  61. wait(Rate)
  62. local Percent = (Frame / Frames)
  63. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  64. TextLabel.TextTransparency = Percent
  65. end
  66. if EffectPart and EffectPart.Parent then
  67. EffectPart:Destroy()
  68. end
  69. end)
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement