Advertisement
Marcsosa

Untitled

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