Advertisement
MarcAndrew

Untitled

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