pastebin

Paste Search Dynamic
Recent pastes
MainScript ServerScriptService
  1.  
  2. local serverStorage = game:GetService("ServerStorage")
  3.  
  4. local replicatedStorage = game:GetService("ReplicatedStorage")
  5.  
  6. local KOValue = "Beaten"
  7.  
  8. local WOValue = "Wipeouts"
  9.  
  10. local damage = 20
  11.  
  12. replicatedStorage.ShootEvent.OnServerEvent:Connect(function(player,tool,position,part)
  13.  
  14. if game.Workspace[player.Name].Humanoid.Health <= 0 then
  15.  
  16. --the player beat no do no anyting--
  17.  
  18. else
  19.  
  20. local distance = (tool.Handle.CFrame.p - position).magnitude
  21.  
  22. if game.Workspace:FindFirstChild(player.Name.."'s Trajectory") then
  23.  
  24. game.Workspace:FindFirstChild(player.Name.."'s Trajectory")Big Grinestroy()
  25.  
  26. end
  27.  
  28. local trajectory = Instance.new("Part",game.Workspace)
  29.  
  30. local smoke = serverStorage.SmokeParticle:Clone()
  31.  
  32. smoke.Parent = tool.Handle
  33.  
  34. trajectory.BrickColor = BrickColor.new("Institutional white")
  35.  
  36. trajectory.Material = "SmoothPlastic"
  37.  
  38. trajectory.Name = player.Name.."'s Trajectory"
  39.  
  40. trajectory.Transparency = 0.5
  41.  
  42. trajectory.Anchor = true
  43.  
  44. trajectory.Locked = true
  45.  
  46. trajectory.CanCollide = false
  47.  
  48. trajectory.Size= Vector3.new(0.3,0.3,distance)
  49.  
  50. for i = 0,distance,6 do
  51.  
  52. trajectory.CFrame = CFrame.new(tool.Handle.CFrame.p,position) * CFrame.new(0,0,-distance / 2)
  53.  
  54. wait(0.0001)
  55.  
  56. end
  57.  
  58. smokeBig Grinestroy()
  59.  
  60. if part then
  61.  
  62. if part.Name == "Head" or part:IsA("Hat") and part.Parent:FindFirstChild("Humanoid").Health > 0 then
  63.  
  64. -- HEADSHOT DSJKNADJSAKNDSA --
  65.  
  66. replicatedStorage.Headshot:FireClient(player)
  67.  
  68. damage = 50
  69.  
  70. end
  71.  
  72. local humanoid = part.Parent:FindFirstChild("Humanoid")
  73.  
  74. if not humanoid then
  75.  
  76. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  77.  
  78. end
  79.  
  80.  
  81.  
  82. else
  83.  
  84. humanoid:TakeDamage(damage)
  85.  
  86. if humanoid.Health <= 0 then
  87.  
  88. player.leaderstats[KOValue].Value = player.leaderstats[KOValue].Value + 1
  89.  
  90. game.Players[humanoid.Parent.Name].leaderstats[WOValue].Value = game.Players[humanoid.Parent.Name].leaderstats[WOValue].Value +1
  91.  
  92. end
  93.  
  94. end
  95.  
  96. wait(0.5)
  97.  
  98. if trajectory then
  99.  
  100. trajectoryBig Grinestroy()
  101.  
  102. end
  103.  
  104. end
  105.  
  106. end)
  107.  
  108. replicatedStorage.EquipAnimation.OnServerEvent:Connect(function(player,animation)
  109.  
  110. local newAnim = game.Workspace[player.Name].Humanoid:LoadAnimation(animation)
  111.  
  112. newAnimTonguelay()
  113.  
  114. replicatedStorage.UnequipAnimation.OnServerEvent(function(player,animation)
  115.  
  116. newAnim:Stop()
  117.  
  118. for i,v in pairs(game.Workspace:GetChildren()) do
  119.  
  120. if v.Name == player.Name.."'s Trajectory" then
  121.  
  122. vBig Grinestroy()
  123.  
  124. end
  125.  
  126. end
  127.  
  128. end)
  129.  
  130. replicatedStorage.Reload.OnServerEvent:Connect(function(player,animation)
  131.  
  132. newAnim:Stop()
  133.  
  134. local reloadAnim = game.Workspace[player.Name].Humanoid:LoadAnimation(animation)
  135.  
  136. reloadAnimTonguelay()
  137.  
  138. end)
  139.  
  140. end)
  141.  
  142.  
  143.  
  144. function checkBodyType(player,tool)
  145.  
  146. if game.Workspace[player.Name]:FindFirstChild("LowerTorso") then -- R15!!!!XDSDXDXDXCXDXCDSFCDESFEWFWEF--
  147.  
  148. tool.shoot.AnimationId = "rbxassetidUndecided/3749750461"
  149.  
  150. tool.reload.AnimationId = "rbxassetidUndecided/3749793476"
  151.  
  152. return "R15"
  153.  
  154. end
  155.  
  156. end
  157.  
  158.  
  159. replicatedStorage.CheckBodyType.OnServerInvoke = checkBodyType()
Parsed in 0.007 seconds