Advertisement
subaru112g

explosion

Feb 15th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. local char = owner.Character
  2.  
  3. for i,v in pairs(char:GetChildren()) do
  4. if v.ClassName == "Hat" or v.ClassName == "Accessory" or v.ClassName == "ShirtGraphic" then
  5. v:Destroy()
  6. end
  7. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  8. if not(v.Name == "Torso") then
  9. v.Transparency = 1
  10. end
  11. end
  12. end
  13.  
  14.  
  15. for i,v in pairs(char.Head:GetChildren()) do
  16. if v.ClassName == "Decal" then
  17. v.Transparency = 1
  18. end
  19. end
  20.  
  21. if char:FindFirstChild("Animate") then
  22. char.Animate:Destroy()
  23. end
  24. wait(0.1)
  25.  
  26.  
  27. if hum then
  28. hum.Name = "CAR"
  29. hum.WalkSpeed = 50
  30. hum.MaxHealth = 9999999999999999
  31. hum.Health = 9999999999999999
  32. end
  33.  
  34. local plr = owner
  35.  
  36. local remote = Instance.new("RemoteEvent", char)
  37. remote.Name = "ReplicationEvent"
  38. local client = NLS([==[
  39. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  40. local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  41. spawn(function()
  42. while game:GetService("RunService").Heartbeat:Wait() do
  43. remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
  44. end
  45. end)
  46. game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
  47. if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
  48. remote:FireServer(1, input.KeyCode)
  49. end
  50. end)
  51. mouse.Button1Down:Connect(function()
  52. remote:FireServer(2)
  53. end)
  54. remote.OnClientEvent:Connect(function()
  55. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
  56. end)
  57. ]==], char)
  58.  
  59. local RS = char.Torso["Right Shoulder"]
  60. local LS = char.Torso["Left Shoulder"]
  61. local RH = char.Torso["Right Hip"]
  62. local LH = char.Torso["Left Hip"]
  63. local rootj = char.HumanoidRootPart.RootJoint
  64. local throwbutton = false
  65. local throw = false
  66. local normalanim = true
  67. local attackd = false
  68. local animpose = "Idle"
  69. local timepos = 0
  70. local sine = 0
  71. local RSnor = RS.C0
  72. local LSnor = LS.C0
  73. local RHnor = RH.C0
  74. local LHnor = LH.C0
  75. local rootjnor = rootj.C0
  76.  
  77. local o = Instance.new("ForceField",char)
  78. o.Visible = false
  79.  
  80. ---------------------------------
  81. -------------Attacks-------------
  82. ---------------------------------
  83.  
  84. remote.OnServerEvent:Connect(function(Player, number, key)
  85. if number == 1 and plr.Name == Player.Name then
  86. if key == Enum.KeyCode.Z then
  87. attackd = true
  88. local bpart = Instance.new("Part", workspace)
  89. bpart.Size = Vector3.new(1, 1, 1)
  90. bpart.Locked = true
  91. bpart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2)
  92. bpart.Velocity = Vector3.new(0, 1, 0)
  93. local update = 0.4
  94. while update > 0.1 do
  95. update = update * 0.9
  96. end
  97. for i = 1, 50 do
  98. local banpart = Instance.new("Part", workspace)
  99. banpart.Size = Vector3.new(1, 1, 1)
  100. banpart.CanCollide = true
  101. banpart.CFrame = bpart.CFrame
  102. local bCFrame = CFrame.new(0, 0, 0)
  103. local bVel = Vector3.new(0, 0, 0)
  104.  
  105. banpart.Size = Vector3.new(1, 1, 1)
  106. local weld = Instance.new("Weld", banpart)
  107. weld.Part0 = bpart
  108. weld.Part1 = banpart
  109. spawn(function()
  110. wait(1)
  111. banpart.Touched:Connect(function(hit)
  112. if hit.Parent and game:GetService("Players"):FindFirstChild(hit.Parent.Name) then
  113. local character = hit.Parent
  114. character:FindFirstChildOfClass("Humanoid").Jump = true
  115. end
  116. end)
  117. end)
  118.  
  119. end
  120.  
  121. char.Torso.CFrame = char.Torso.CFrame + Vector3.new(0,0.01,0)
  122. local explosion = Instance.new("Explosion", bpart)
  123. explosion.Position = bpart.Position
  124. explosion.DestroyJointRadiusPercent = 20
  125. bpart.CanCollide = false
  126. attackd = false
  127.  
  128. end
  129.  
  130. elseif Player.Name == owner.Name then
  131.  
  132. end
  133. end)
  134.  
  135. while true do
  136. wait()
  137. for i,v in pairs(char:GetChildren()) do
  138. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  139. v:Destroy()
  140. end
  141. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  142. v.Transparency = 1
  143. end
  144. end
  145. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement