Advertisement
Marcsosa

Untitled

Mar 16th, 2018
144
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. local train = Instance.new("Part",p.Torso)
  14. train.Anchored = true
  15. train.CanCollide = false
  16. train.Size = Vector3.new(3,2,6)
  17. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  18. weld.Part1 = train
  19. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  20. train.Anchored = false
  21. local TrainMesh = Instance.new("SpecialMesh",train)
  22. TrainMesh.MeshType = Enum.MeshType.FileMesh
  23. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  24. TrainMesh.MeshId = "rbxassetid://1300136843"
  25. TrainMesh.TextureId = "rbxassetid://1300137893"
  26.  
  27.  
  28. eyes = Instance.new('Part', char)
  29. eyes.Anchored = false
  30. eyes.Name = "Eyes"
  31. eyes.Size = Vector3.new(0.22, 0.052, 0.105)
  32. eyesm = Instance.new('SpecialMesh', eyes)
  33. eyesm.Scale = Vector3.new(0.039, 0.039, 0.039)
  34. eyesm.MeshId = "rbxassetid://1300138314"
  35. eyesm.TextureId = "rbxassetid://1300129774"
  36.  
  37.  
  38. local weld2 = Instance.new("Weld",p.Torso)
  39. weld2.Part0 = p.Torso
  40. local Smoke = Instance.new("Part",p.Torso)
  41. Smoke.Anchored = true
  42. Smoke.CanCollide = false
  43. Smoke.Size = Vector3.new(1,1,1)
  44. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  45. weld2.Part1 = Smoke
  46. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  47. Smoke.Anchored = false
  48. Smoke.Transparency = 1;
  49.  
  50. local Particle = Instance.new("ParticleEmitter",Smoke)
  51. Particle.Rate = 50;
  52. Particle.Speed = NumberRange.new(30,60);
  53. Particle.VelocitySpread = 4;
  54. Particle.Texture = "rbxassetid://133619974"
  55.  
  56. local Light = Instance.new("SpotLight",train)
  57. Light.Angle = 45;
  58. Light.Brightness = 100;
  59. Light.Face = Enum.NormalId.Back;
  60. Light.Range = 30;
  61.  
  62. p.Humanoid.WalkSpeed = 60;
  63.  
  64.  
  65. for i,v in pairs(p:GetChildren()) do
  66. if v:IsA("Part") then
  67. v.Transparency = 1;
  68. elseif v:IsA("Hat") then
  69. v:Destroy()
  70. elseif v:IsA("Model") then
  71. v:Destroy()
  72. end
  73. end
  74.  
  75. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  76. train.Touched:connect(function(p)
  77. if p.Parent then
  78. if p.Parent:IsA("Model") then
  79. if game.Players:FindFirstChild(p.Parent.Name) then
  80. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  81. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  82. local Whistle = SFX(1320393438)
  83. Whistle:Play()
  84. end
  85. end
  86. end
  87. end
  88. end)
  89.  
  90. local Music = SFX(246446732)
  91. Music.Looped = true;
  92. wait(1)
  93. Music:Play();
  94. -- ~CL 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement