Advertisement
Guest User

sdasw

a guest
Jan 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 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. local train = Instance.new("Part",p.Torso)
  14. Car.Anchored = true
  15. Car.CanCollide = false
  16. Car.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 CarMesh = Instance.new("SpecialMesh",Car)
  22. CarMesh.MeshType = Enum.MeshType.FileMesh
  23. CarMesh.Scale = Vector3.new(0.020,0.020,0.015)
  24. CarMesh.MeshId = "rbxassetid://540782942"
  25. CarMesh.TextureId = "rbxassetid://540782925"
  26.  
  27.  
  28. local weld2 = Instance.new("Weld",p.Torso)
  29. weld2.Part0 = p.Torso
  30. local Smoke = Instance.new("Part",p.Torso)
  31. Smoke.Anchored = true
  32. Smoke.CanCollide = false
  33. Smoke.Size = Vector3.new(1,1,1)
  34. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  35. weld2.Part1 = Smoke
  36. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  37. Smoke.Anchored = false
  38. Smoke.Transparency = 1;
  39.  
  40.  
  41. local Light = Instance.new("SpotLight",train)
  42. Light.Angle = 45;
  43. Light.Brightness = 100;
  44. Light.Face = Enum.NormalId.Back;
  45. Light.Range = 30;
  46.  
  47. p.Humanoid.WalkSpeed = 300;
  48.  
  49.  
  50. for i,v in pairs(p:GetChildren()) do
  51. if v:IsA("Part") then
  52. v.Transparency = 1;
  53. elseif v:IsA("Hat") then
  54. v:Destroy()
  55. elseif v:IsA("Model") then
  56. v:Destroy()
  57. end
  58. end
  59.  
  60. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  61. train.Touched:connect(function(p)
  62. if p.Parent then
  63. if p.Parent:IsA("Model") then
  64. if game.Players:FindFirstChild(p.Parent.Name) then
  65. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  66. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  67. local Whistle = SFX(475073913)
  68. Whistle:Play()
  69. end
  70. end
  71. end
  72. end
  73. end)
  74.  
  75. local Music = SFX(153619739)
  76. Music.Looped = true;
  77. wait(1)
  78. Music:Play();
  79. -- ~CL 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement