nguyentuhuy123

Thomas!

Jan 7th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  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. game.Workspace.nguyentuhuy123.Humanoid.MaxHealth = math.huge
  14.  
  15. local train = Instance.new("Part",p.Torso)
  16. train.Anchored = true
  17. train.CanCollide = false
  18. train.Size = Vector3.new(3,2,6)
  19. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  20. weld.Part1 = train
  21. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  22. train.Anchored = false
  23. local TrainMesh = Instance.new("SpecialMesh",train)
  24. TrainMesh.MeshType = Enum.MeshType.FileMesh
  25. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  26. TrainMesh.MeshId = "rbxassetid://431017802"
  27. TrainMesh.TextureId = "rbxassetid://431017809"
  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 = 70;
  44. Particle.Speed = NumberRange.new(30,60);
  45. Particle.VelocitySpread = 4;
  46. Particle.Texture = "rbxassetid://133619974"
  47.  
  48. local Light = Instance.new("SpotLight",train)
  49. Light.Angle = 45;
  50. Light.Brightness = 50;
  51. Light.Face = Enum.NormalId.Back;
  52. Light.Range = 35;
  53.  
  54. p.Humanoid.WalkSpeed = 100;
  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(475073913)
  75. Whistle:Play()
  76. end
  77. end
  78. end
  79. end
  80. end)
  81.  
  82. local Music = SFX(190819252)
  83. Music.Looped = true;
  84. wait(1)
  85. Music:Play();
  86. -- ~CL 2016
Add Comment
Please, Sign In to add comment