Advertisement
dylan12312

Untitled

Jan 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. local sound = Instance.new("Sound")
  2. sound.Name = 'WaveAdmin'
  3. sound.SoundId = "http://www.roblox.com/asset?id=1068979910"
  4. sound.Volume = 5
  5. sound.Looped = true
  6. sound:Play()
  7. sound.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  8. -- ty krystalburger
  9. --[[
  10. Thomas The Dank Engine:
  11. By: KrystalTeam
  12. Features: Being a dank engine that kill people
  13. Version: 1.0.0.2
  14. --]]
  15.  
  16. local p = game.Players.LocalPlayer.Character
  17. local weld = Instance.new("Weld",p.Torso)
  18. weld.Part0 = p.Torso
  19.  
  20. local train = Instance.new("Part",p.Torso)
  21. train.Anchored = true
  22. train.CanCollide = false
  23. train.Size = Vector3.new(3,2,6)
  24. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  25. weld.Part1 = train
  26. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  27. train.Anchored = false
  28. local TrainMesh = Instance.new("SpecialMesh",train)
  29. TrainMesh.MeshType = Enum.MeshType.FileMesh
  30. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  31. TrainMesh.MeshId = "rbxassetid://431017802"
  32. TrainMesh.TextureId = "rbxassetid://431017809"
  33.  
  34.  
  35. local weld2 = Instance.new("Weld",p.Torso)
  36. weld2.Part0 = p.Torso
  37. local Smoke = Instance.new("Part",p.Torso)
  38. Smoke.Anchored = true
  39. Smoke.CanCollide = false
  40. Smoke.Size = Vector3.new(1,1,1)
  41. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  42. weld2.Part1 = Smoke
  43. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  44. Smoke.Anchored = false
  45. Smoke.Transparency = 1;
  46.  
  47. local Particle = Instance.new("ParticleEmitter",Smoke)
  48. Particle.Rate = 50;
  49. Particle.Speed = NumberRange.new(30,60);
  50. Particle.VelocitySpread = 4;
  51. Particle.Texture = "rbxassetid://133619974"
  52.  
  53. local Light = Instance.new("SpotLight",train)
  54. Light.Angle = 45;
  55. Light.Brightness = 100;
  56. Light.Face = Enum.NormalId.Back;
  57. Light.Range = 30;
  58.  
  59. p.Humanoid.WalkSpeed = 60;
  60.  
  61.  
  62. for i,v in pairs(p:GetChildren()) do
  63. if v:IsA("Part") then
  64. v.Transparency = 1;
  65. elseif v:IsA("Hat") then
  66. v:Destroy()
  67. elseif v:IsA("Model") then
  68. v:Destroy()
  69. end
  70. end
  71.  
  72. train.Touched:connect(function(p)
  73. if p.Parent then
  74. if p.Parent:IsA("Model") then
  75. if game.Players:FindFirstChild(p.Parent.Name) then
  76. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  77. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  78. local Whistle = SFX(475073913)
  79. Whistle:Play()
  80. end
  81. end
  82. end
  83. end
  84. end)
  85.  
  86. local Music = SFX(190819252)
  87. Music.Looped = true;
  88. wait(1)
  89. Music:Play();
  90. -- ~CL 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement