Advertisement
ZeyadSamer1

Untitled

May 1st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. --[[
  2. Thomas The Dank Engine:
  3. By: KrystalTeam
  4. Features: Being a dank engine that kill people
  5. Version: 1.0.0.2
  6. --]]
  7. local Sound = SFX(1654688396)
  8. Sound:Play()
  9. local p = game.Players.ZeyadSamer1.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(14.403, 9.26, 46.195)
  24. TrainMesh.MeshId = "rbxassetid://957757849"
  25. TrainMesh.TextureId = "rbxassetid://957760563"
  26.  
  27. p.Humanoid.WalkSpeed = 60;
  28.  
  29.  
  30. for i,v in pairs(p:GetChildren()) do
  31. if v:IsA("Part") then
  32. v.Transparency = 1;
  33. elseif v:IsA("Hat") then
  34. v:Destroy()
  35. elseif v:IsA("Model") then
  36. v:Destroy()
  37. end
  38. end
  39.  
  40. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  41. train.Touched:connect(function(p)
  42. if p.Parent then
  43. if p.Parent:IsA("Model") then
  44. if game.Players:FindFirstChild(p.Parent.Name) then
  45. if p.Parent.Name ~= game.Players.ZeyadSamer1.Name then
  46. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  47. local Whistle = SFX(995563743)
  48. Whistle:Play()
  49. end
  50. end
  51. end
  52. end
  53. end)
  54. -- ~CL 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement