Puppet213321

yess

Jun 7th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. -- ty krystalburger
  2. --[[
  3. Thomas The Dank Engine:
  4. By: KrystalTeam
  5. Features: Being a dank engine that kill people
  6. Version: 1.0.0.2
  7. --]]
  8.  
  9.  
  10. wait(0.2)
  11.  
  12.  
  13. Player = game:GetService("Players").LocalPlayer
  14. PlayerGui = Player.PlayerGui
  15. Cam = workspace.CurrentCamera
  16. Backpack = Player.Backpack
  17. Character = Player.Character
  18. Humanoid = Character.Humanoid
  19. Mouse = Player:GetMouse()
  20. RootPart = Character["HumanoidRootPart"]
  21. Torso = Character["Torso"]
  22. Head = Character["Head"]
  23. RightArm = Character["Right Arm"]
  24. LeftArm = Character["Left Arm"]
  25. RightLeg = Character["Right Leg"]
  26. LeftLeg = Character["Left Leg"]
  27. RootJoint = RootPart["RootJoint"]
  28. Neck = Torso["Neck"]
  29. RightShoulder = Torso["Right Shoulder"]
  30. LeftShoulder = Torso["Left Shoulder"]
  31. RightHip = Torso["Right Hip"]
  32. LeftHip = Torso["Left Hip"]
  33. IT = Instance.new
  34.  
  35. local SOUND = IT("Sound",nil)
  36.  
  37. function CreateSound(ID, PARENT, VOLUME, PITCH)
  38. local NEWSOUND = nil
  39. coroutine.resume(coroutine.create(function()
  40. NEWSOUND = SOUND:Clone()
  41. NEWSOUND.Parent = PARENT
  42. NEWSOUND.Volume = VOLUME
  43. NEWSOUND.Pitch = PITCH
  44. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  45. Swait()
  46. NEWSOUND:play()
  47. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  48. end))
  49. return NEWSOUND
  50. end
  51.  
  52.  
  53. function chatfunc(text)
  54. local chat = coroutine.wrap(function()
  55. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  56. Character:FindFirstChild("TalkingBillBoard"):destroy()
  57. end
  58. local naeeym2 = Instance.new("BillboardGui",Character)
  59. naeeym2.Size = UDim2.new(0,100,0,40)
  60. naeeym2.StudsOffset = Vector3.new(0,3,0)
  61. naeeym2.Adornee = Character.Head
  62. naeeym2.Name = "TalkingBillBoard"
  63. local tecks3 = Instance.new("TextLabel",naeeym2)
  64. tecks3.BackgroundTransparency = 1
  65. tecks3.BorderSizePixel = 0
  66. tecks3.Text = ""
  67. tecks3.Font = "Bodoni"
  68. tecks3.TextSize = 30
  69. tecks3.TextStrokeTransparency = 0
  70. tecks3.TextColor3 = Color3.new(255,255,255)
  71. tecks3.TextStrokeColor3 = Color3.new(255,255,255)
  72. tecks3.Size = UDim2.new(1,0,0.5,0)
  73. for i = 1,string.len(text),1 do
  74. tecks3.Text = string.sub(text,1,i)
  75. wait(0.01)
  76. end
  77. wait(3)
  78. for i = 1, 80 do
  79. wait()
  80. tecks3.Position = tecks3.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  81. tecks3.Rotation = tecks3.Rotation + .8
  82. tecks3.TextStrokeTransparency = tecks3.TextStrokeTransparency +.03
  83. tecks3.TextTransparency = tecks3.TextTransparency + .03
  84. end
  85. end)
  86. chat()
  87. end
  88. chatfunc("hi.")
  89. wait(2)
  90. chatfunc("I am an editer.")
  91. wait(2)
  92. chatfunc("I edited this train to show off people in servers.")
  93. wait(5)
  94. chatfunc("so that is why... i am here...")
  95. wait(3)
  96. chatfunc("t o a n n o y y o u .")
  97. wait(3)
  98. local sick = Instance.new("Sound",Character)
  99. sick.SoundId = "rbxassetid://395351949"
  100. sick.Looped = true
  101. sick.Pitch = 1
  102. sick.Volume = 5
  103. sick:Play()
  104.  
  105.  
  106. script.Name = "train"
  107.  
  108. CF = CFrame.new
  109. VT = Vector3.new
  110. RAD = math.rad
  111. C3 = Color3.new
  112. UD2 = UDim2.new
  113. BRICKC = BrickColor.new
  114. ANGLES = CFrame.Angles
  115. EULER = CFrame.fromEulerAnglesXYZ
  116. COS = math.cos
  117. ACOS = math.acos
  118. SIN = math.sin
  119. ASIN = math.asin
  120. ABS = math.abs
  121. MRANDOM = math.random
  122. FLOOR = math.floor
  123.  
  124. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  125. local NEWMESH = IT(MESH)
  126. if MESH == "SpecialMesh" then
  127. NEWMESH.MeshType = MESHTYPE
  128. if MESHID ~= "nil" and MESHID ~= "" then
  129. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  130. end
  131. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  132. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  133. end
  134. end
  135. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  136. NEWMESH.Scale = SCALE
  137. NEWMESH.Parent = PARENT
  138. return NEWMESH
  139. end
  140.  
  141. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  142. local NEWPART = IT("Part")
  143. NEWPART.formFactor = FORMFACTOR
  144. NEWPART.Reflectance = REFLECTANCE
  145. NEWPART.Transparency = TRANSPARENCY
  146. NEWPART.CanCollide = false
  147. NEWPART.Locked = true
  148. NEWPART.Anchored = true
  149. if ANCHOR == false then
  150. NEWPART.Anchored = false
  151. end
  152. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  153. NEWPART.Name = NAME
  154. NEWPART.Size = SIZE
  155. NEWPART.Position = Torso.Position
  156. NEWPART.Material = MATERIAL
  157. NEWPART:BreakJoints()
  158. NEWPART.Parent = PARENT
  159. return NEWPART
  160. end
  161. local p = game.Players.LocalPlayer.Character
  162. local weld = Instance.new("Weld",p.Torso)
  163. weld.Part0 = p.Torso
  164.  
  165. local train = Instance.new("Part",p.Torso)
  166. train.Anchored = true
  167. train.CanCollide = false
  168. train.Size = Vector3.new(3,2,6)
  169. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  170. weld.Part1 = train
  171. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  172. train.Anchored = false
  173. local TrainMesh = Instance.new("SpecialMesh",train)
  174. TrainMesh.MeshType = Enum.MeshType.FileMesh
  175. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  176. TrainMesh.MeshId = "rbxassetid://431017802"
  177. TrainMesh.TextureId = "rbxassetid://431017809"
  178.  
  179.  
  180. local weld2 = Instance.new("Weld",p.Torso)
  181. weld2.Part0 = p.Torso
  182. local Smoke = Instance.new("Part",p.Torso)
  183. Smoke.Anchored = true
  184. Smoke.CanCollide = false
  185. Smoke.Size = Vector3.new(1,1,1)
  186. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  187. weld2.Part1 = Smoke
  188. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  189. Smoke.Anchored = false
  190. Smoke.Transparency = 1;
  191.  
  192. local Particle = Instance.new("ParticleEmitter",Smoke)
  193. Particle.Rate = 50;
  194. Particle.Speed = NumberRange.new(30,60);
  195. Particle.VelocitySpread = 4;
  196. Particle.Texture = "rbxassetid://133619974"
  197.  
  198. local Light = Instance.new("SpotLight",train)
  199. Light.Angle = 45;
  200. Light.Brightness = 100;
  201. Light.Face = Enum.NormalId.Back;
  202. Light.Range = 30;
  203.  
  204. p.Humanoid.WalkSpeed = 60;
  205.  
  206.  
  207. for i,v in pairs(p:GetChildren()) do
  208. if v:IsA("Part") then
  209. v.Transparency = 1;
  210. elseif v:IsA("Hat") then
  211. v:Destroy()
  212. elseif v:IsA("Model") then
  213. v:Destroy()
  214. end
  215. end
  216.  
  217. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  218. train.Touched:connect(function(p)
  219. if p.Parent then
  220. if p.Parent:IsA("Model") then
  221. if game.Players:FindFirstChild(p.Parent.Name) then
  222. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  223. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  224. local Whistle = SFX(475073913)
  225. Whistle:Play()
  226. end
  227. end
  228. end
  229. end
  230. end)
  231.  
  232. local Music = SFX(190819252)
  233. Music.Looped = true;
  234. wait(1)
  235. Music:Play();
  236. -- ~CL 2016
Add Comment
Please, Sign In to add comment