Advertisement
camden7306

Thomas the Dank ENgine Script

Apr 29th, 2018
4,215
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 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.  
  11. local weld = Instance.new("Weld",p.Humanoid.Torso)
  12. weld.Part0 = p.Humanoid.Torso
  13.  
  14. local train = Instance.new("Part",p.Humanoid.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.020,0.020,0.015)
  25. TrainMesh.MeshId = "rbxassetid://431017802"
  26. TrainMesh.TextureId = "rbxassetid://431017809"
  27.  
  28.  
  29. local weld2 = Instance.new("Weld",p.Humanoid.Torso)
  30. weld2.Part0 = p.Humanoid.Torso
  31. local Smoke = Instance.new("Part",p.Humanoid.Torso)
  32. Smoke.Anchored = true
  33. Smoke.CanCollide = false
  34. Smoke.Size = Vector3.new(1,1,1)
  35. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  36. weld2.Part1 = Smoke
  37. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  38. Smoke.Anchored = false
  39. Smoke.Transparency = 1;
  40.  
  41. local Particle = Instance.new("ParticleEmitter",Smoke)
  42. Particle.Rate = 50;
  43. Particle.Speed = NumberRange.new(30,60);
  44. Particle.VelocitySpread = 4;
  45. Particle.Texture = "rbxassetid://133619974"
  46.  
  47. local Light = Instance.new("SpotLight",train)
  48. Light.Angle = 45;
  49. Light.Brightness = 100;
  50. Light.Face = Enum.NormalId.Back;
  51. Light.Range = 30;
  52.  
  53. p.Humanoid.WalkSpeed = 20;
  54.  
  55.  
  56. for i,v in pairs(p:GetChildren()) do
  57. if v:IsA("Part") then
  58. v.Transparency = 1;
  59. elseif v:IsA("Hat") then
  60. v:Destroy()
  61. elseif v:IsA("Model") then
  62. v:Destroy()
  63. end
  64. end
  65.  
  66. local function SFX(id) local s=Instance.new("Sound",p.Humanoid.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  67. train.Touched:connect(function(p)
  68. if p.Parent then
  69. if p.Parent:IsA("Model") then
  70. if game.Players:FindFirstChild(p.Parent.Name) then
  71. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  72. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  73. local Whistle = SFX(604650009)
  74. Whistle:Play()
  75. end
  76. end
  77. end
  78. end
  79. end)
  80. local sound = Instance.new("Sound")
  81. sound.SoundId = "http://www.roblox.com/asset/?id=198482531" --Change the last numbers of the link to the id of your audio.
  82. sound.Parent = game.Workspace
  83. sound.Volume = 200
  84. sound.Looped = true
  85. sound:play()
  86. repeat wait() until game.Players.LocalPlayer
  87. local Mouse = game.Players.LocalPlayer:GetMouse()
  88. local Plr = game.Players.LocalPlayer
  89. Plr.Character.Humanoid.MaxHealth = math.huge
  90. Plr.Character.Humanoid.WalkSpeed = 100
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement