Advertisement
ManlyMemeScripter

Toed

Oct 19th, 2019
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.42 KB | None | 0 0
  1. local p = game.Players.THECREATOR20029.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,1.5,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.04,0.04,0.04)
  16. TrainMesh.MeshId = "rbxassetid://430210147"
  17. TrainMesh.TextureId = "rbxassetid://430210159"
  18.  
  19. p.Humanoid.WalkSpeed = 70;
  20.  
  21.  
  22. for i,v in pairs(p:GetChildren()) do
  23.     if v:IsA("Part") then
  24.         v.Transparency = 1;
  25.     elseif v:IsA("Hat") then
  26.         v:Destroy()
  27.     elseif v:IsA("Model") then
  28.         v:Destroy()
  29.     end
  30. end
  31.  
  32. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  33. train.Touched:connect(function(p)
  34.     if p.Parent then
  35.         if p.Parent:IsA("Model") then
  36.             if game.Players:FindFirstChild(p.Parent.Name) then
  37.                 if p.Parent.Name ~= game.Players.THECREATOR20029.Name then
  38.                     game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  39.                     local Whistle = SFX(428593644)
  40.                     Whistle:Play()
  41.                 end
  42.             end
  43.         end
  44.     end
  45. end)
  46.  
  47. local Music = SFX(222274242)
  48. Music.Looped = true;
  49. wait(1)
  50. Music:Play();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement