Advertisement
ManlyMemeScripter

NEW TOAD

Feb 2nd, 2018
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  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(1, 1, 1)
  16. TrainMesh.MeshId = "rbxassetid://867084703"
  17. TrainMesh.TextureId = "rbxassetid://867084703"
  18.  
  19.  
  20. local weld2 = Instance.new("Weld",p.Torso)
  21. weld2.Part0 = p.Torso
  22. local Smoke = Instance.new("Part",p.Torso)
  23. Smoke.Anchored = true
  24. Smoke.CanCollide = false
  25. Smoke.Size = Vector3.new(1,1,1)
  26. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  27. weld2.Part1 = Smoke
  28. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  29. Smoke.Anchored = false
  30. Smoke.Transparency = 1;
  31.  
  32. local Particle = Instance.new("ParticleEmitter",Smoke)
  33. Particle.Rate = 50;
  34. Particle.Speed = NumberRange.new(30,60);
  35. Particle.VelocitySpread = 4;
  36. Particle.Texture = "http://www.roblox.com/asset/?id=0"
  37.  
  38. local Light = Instance.new("SpotLight",train)
  39. Light.Angle = 45;
  40. Light.Brightness = 100;
  41. Light.Face = Enum.NormalId.Back;
  42. Light.Range = 30;
  43.  
  44. p.Humanoid.WalkSpeed = 60;
  45.  
  46.  
  47. for i,v in pairs(p:GetChildren()) do
  48. if v:IsA("Part") then
  49. v.Transparency = 1;
  50. elseif v:IsA("Hat") then
  51. v:Destroy()
  52. elseif v:IsA("Model") then
  53. v:Destroy()
  54. end
  55. end
  56.  
  57. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  58. train.Touched:connect(function(p)
  59. if p.Parent then
  60. if p.Parent:IsA("Model") then
  61. if game.Players:FindFirstChild(p.Parent.Name) then
  62. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  63. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  64. local Whistle = SFX(428593644)
  65. Whistle:Play()
  66. end
  67. end
  68. end
  69. end
  70. end)
  71.  
  72. local Music = SFX(597084853)
  73. Music.Looped = true;
  74. wait(1)
  75. Music:Play();
  76.  
  77. -- Properties
  78.  
  79. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  80.  
  81. TextButton.Parent = ScreenGui
  82. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  83. TextButton.Size = UDim2.new(0, 200, 0, 50)
  84. TextButton.Font = Enum.Font.SourceSans
  85. TextButton.FontSize = Enum.FontSize.Size14
  86. TextButton.Text = "shrek roar"
  87. TextButton.TextSize = 14
  88.  
  89. --[[Function/s being made!]]
  90. function PlayMusic(ID)
  91. for i, v in pairs (game.Workspace:GetChildren()) do
  92. if v:IsA("Sound") then
  93. end
  94. end
  95. local music = Instance.new("Sound")
  96. local asset = "rbxassetid://"
  97. music.SoundId = asset .. ID
  98. music.Parent = workspace
  99. music.Volume = 99
  100. music.Looped = false
  101. music:Play()
  102. end
  103. --[[Connecting functions!]]
  104. TextButton.MouseButton1Down:connect(function()
  105. PlayMusic(513492655)
  106. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement