Advertisement
DaLittleTem

Untitled

Aug 31st, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1.  
  2. local p = game.Players.adimihai.Character
  3. local weld = Instance.new("Weld",p.Torso)
  4. weld.Part0 = p.Torso
  5.  
  6. local train = Instance.new("Part",p.Torso)
  7. train.Anchored = true
  8. train.CanCollide = false
  9. train.Size = Vector3.new(3,2,6)
  10. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  11. weld.Part1 = train
  12. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  13. train.Anchored = false
  14. local TrainMesh = Instance.new("SpecialMesh",train)
  15. TrainMesh.MeshType = Enum.MeshType.FileMesh
  16. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  17. TrainMesh.MeshId = "rbxassetid://431017802"
  18. TrainMesh.TextureId = "rbxassetid://431017809"
  19.  
  20.  
  21. local weld2 = Instance.new("Weld",p.Torso)
  22. weld2.Part0 = p.Torso
  23. local Smoke = Instance.new("Part",p.Torso)
  24. Smoke.Anchored = true
  25. Smoke.CanCollide = false
  26. Smoke.Size = Vector3.new(1,1,1)
  27. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  28. weld2.Part1 = Smoke
  29. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  30. Smoke.Anchored = false
  31. Smoke.Transparency = 1;
  32.  
  33. local Particle = Instance.new("ParticleEmitter",Smoke)
  34. Particle.Rate = 50;
  35. Particle.Speed = NumberRange.new(30,60);
  36. Particle.VelocitySpread = 4;
  37. Particle.Texture = "rbxassetid://133619974"
  38.  
  39. local Light = Instance.new("SpotLight",train)
  40. Light.Angle = 45;
  41. Light.Brightness = 100;
  42. Light.Face = Enum.NormalId.Back;
  43. Light.Range = 30;
  44.  
  45. p.Humanoid.WalkSpeed = 60;
  46.  
  47.  
  48. for i,v in pairs(p:GetChildren()) do
  49. if v:IsA("Part") then
  50. v.Transparency = 1;
  51. elseif v:IsA("Hat") then
  52. v:Destroy()
  53. elseif v:IsA("Model") then
  54. v:Destroy()
  55. end
  56. end
  57.  
  58. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  59. train.Touched:connect(function(p)
  60. if p.Parent then
  61. if p.Parent:IsA("Model") then
  62. if game.Players:FindFirstChild(p.Parent.Name) then
  63. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  64. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  65. local Whistle = SFX(475073913)
  66. Whistle:Play()
  67. end
  68. end
  69. end
  70. end
  71. end)
  72.  
  73. local Music = SFX(190819252)
  74. Music.Looped = true;
  75. wait(1)
  76. Music:Play();
  77. -- ~CL 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement