Advertisement
BendyFromBATIM

Untitled

Jul 17th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. p = game.Players.LocalPlayer
  9. p.Character.Humanoid.MaxHealth = math.huge
  10.  
  11.  
  12. local p = game.Players.LocalPlayer.Character
  13. local weld = Instance.new("Weld",p.Torso)
  14. weld.Part0 = p.Torso
  15.  
  16. local train = Instance.new("Part",p.Torso)
  17. train.Anchored = true
  18. train.CanCollide = false
  19. train.Size = Vector3.new(20,20,20)
  20. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  21. weld.Part1 = train
  22. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  23. train.Anchored = false
  24. local TrainMesh = Instance.new("SpecialMesh",train)
  25. TrainMesh.MeshType = Enum.MeshType.FileMesh
  26. TrainMesh.Scale = Vector3.new(20,20,20)
  27. TrainMesh.MeshId = "rbxassetid://122293937"
  28. TrainMesh.TextureId = "rbxassetid://122410838"
  29.  
  30.  
  31. local weld2 = Instance.new("Weld",p.Torso)
  32. weld2.Part0 = p.Torso
  33. local Smoke = Instance.new("Part",p.Torso)
  34. Smoke.Anchored = true
  35. Smoke.CanCollide = false
  36. Smoke.Size = Vector3.new(1,1,1)
  37. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  38. weld2.Part1 = Smoke
  39. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  40. Smoke.Anchored = false
  41. Smoke.Transparency = 1;
  42.  
  43.  
  44. local Light = Instance.new("SpotLight",train)
  45. Light.Angle = 0;
  46. Light.Brightness = 0;
  47. Light.Face = Enum.NormalId.Back;
  48. Light.Range = 0;
  49.  
  50. p.Humanoid.WalkSpeed = 60;
  51.  
  52.  
  53. for i,v in pairs(p:GetChildren()) do
  54. if v:IsA("Part") then
  55. v.Transparency = 1;
  56. elseif v:IsA("Hat") then
  57. v:Destroy()
  58. elseif v:IsA("Model") then
  59. v:Destroy()
  60. end
  61. end
  62.  
  63. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 50; return s; end
  64. train.Touched:connect(function(p)
  65. if p.Parent then
  66. if p.Parent:IsA("Model") then
  67. if game.Players:FindFirstChild(p.Parent.Name) then
  68. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  69. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  70. local Whistle = SFX(305862883)
  71. Whistle:Play()
  72. end
  73. end
  74. end
  75. end
  76. end)
  77. plr = game.Players.LocalPlayer
  78. mouse = plr:GetMouse()
  79. part = nil
  80. bp = nil
  81. particles = nil
  82. function clerp(a,b,c,d)
  83. for i = 0,d,.01 do
  84. a.CFrame = CFrame.new(b:lerp(c,i))
  85. wait()
  86. end
  87. end
  88. function slerp(a2,b2,c2,d2)
  89. for i2 = 0,d2,.01 do
  90. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  91. wait()
  92. end
  93. end
  94. mouse.KeyDown:connect(function(key)
  95. if key == "e" and plr.Character.Parent == workspace then
  96. plr.Character.Parent = workspace.Camera
  97. plr.Character.Archivable = true
  98. Instance.new("ForceField",plr.Character).Visible = false
  99. for y,t in pairs(plr.Character:GetChildren()) do
  100. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  101. t.Transparency = 1
  102. if t.Name == "Head" and t:FindFirstChild("face") then
  103. t.face.Transparency = 1
  104. end
  105. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  106. t.Handle.Transparency = 1
  107. end
  108. end
  109. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  110. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  111. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  112. if plr.Character.Torso.Anchored == true then
  113. for y,t in pairs(plr.Character:GetChildren()) do
  114. if t:IsA("Part") then
  115. t.Anchored = false
  116. end
  117. end
  118. else
  119. for y,t in pairs(plr.Character:GetChildren()) do
  120. if t:IsA("Part") then
  121. t.Anchored = true
  122. end
  123. end
  124. end
  125. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  126. local clone = part:Clone()
  127. clone.Parent = workspace
  128. clone.Anchored = false
  129. clone:ClearAllChildren()
  130. clone.CanCollide = true
  131. bp.Parent = clone
  132. particles.Parent = clone
  133. if part.Parent:FindFirstChildOfClass("Humanoid") then
  134. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  135. end
  136. part:Destroy()
  137. part = clone
  138. elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
  139. plr.Character.Parent = workspace
  140. plr.Character.Archivable = false
  141. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  142. for y,t in pairs(plr.Character:GetChildren()) do
  143. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  144. t.Transparency = 0
  145. if t.Name == "Head" and t:FindFirstChild("face") then
  146. t.face.Transparency = 0
  147. end
  148. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  149. t.Handle.Transparency = 0
  150. end
  151. end
  152. end
  153. end)
  154. mouse.Button1Down:connect(function()
  155. if plr.Character.Parent == workspace.Camera then
  156. if mouse ~= nil then
  157. if mouse.Target ~= nil then
  158. part = mouse.Target
  159. bp = Instance.new("BodyPosition",part)
  160. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  161. bp.Position = part.Position
  162. particles = Instance.new("ParticleEmitter",part)
  163. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  164. particles.Size = NumberSequence.new(1)
  165. particles.Texture = "rbxassetid://292289455"
  166. particles.VelocitySpread = 360
  167. particles.Speed = NumberRange.new(0)
  168. particles.RotSpeed = NumberRange.new(0)
  169. particles.Rotation = NumberRange.new(0)
  170. particles.Rate = 250
  171. particles.Lifetime = NumberRange.new(.2,.4)
  172. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  173. dwn = true
  174. end
  175. end
  176. while dwn == true do
  177. wait()
  178. bp.Position = mouse.hit.p
  179. if part then
  180. if part.Parent:FindFirstChildOfClass("Humanoid") then
  181. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  182. end
  183. end
  184. end
  185. end
  186. end)
  187. mouse.Button1Up:connect(function()
  188. dwn = false
  189. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  190. if bp then bp:Destroy() end
  191. if particles then particles:Destroy() end
  192. end)
  193. base = Instance.new("ScreenGui",plr.PlayerGui)
  194. bbg = Instance.new("BillboardGui",plr.Character.Head)
  195. bbg.Size = UDim2.new(0,200,0,50)
  196. bbg.StudsOffset = Vector3.new(0,3,0)
  197. bbgTl = Instance.new("TextLabel",bbg)
  198. bbgTl.BackgroundTransparency = 1
  199. bbgTl.Size = UDim2.new(10,0,1,0)
  200. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  201. bbgTl.Font = "Code"
  202. bbgTl.Text = " "
  203. bbgTl.TextSize = 25
  204. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  205. bbgTl.TextColor3 = Color3.new(0,0,0)
  206. bbgTl.TextStrokeTransparency = 0
  207. bbgTl.TextWrapped = true
  208. plr.Chatted:connect(function(msg)
  209. bbgTl.Text = msg
  210. wait(5)
  211. if bbgTl.Text == msg then
  212. bbgTl.Text = " "
  213. end
  214. end)
  215. touchCounter = 0
  216. while wait() do
  217. if plr.Character.Parent == workspace.Camera then
  218. local c = plr.Character:Clone()
  219. c:MakeJoints()
  220. for y,t in pairs(c:GetChildren()) do
  221. if t:IsA("Part") then
  222. t.CanCollide = false
  223. t.Anchored = true
  224. t.Transparency = .5
  225. t.TopSurface = "Smooth"
  226. t.BottomSurface = "Smooth"
  227. t.RightSurface = "Smooth"
  228. t.LeftSurface = "Smooth"
  229. t.FrontSurface = "Smooth"
  230. t.BackSurface = "Smooth"
  231. t.BrickColor = BrickColor.new("Really black")
  232. if t.Name == "Head" and t:FindFirstChild("face") then
  233. t.face:Remove()
  234. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  235. t.roblox:Remove()
  236. elseif t.Name == "HumanoidRootPart" then
  237. t:Remove()
  238. end
  239. else
  240. t:Remove()
  241. end
  242. end
  243. c.Parent = workspace
  244. game.Debris:AddItem(c,.05)
  245. end
  246. end
  247.  
  248. local Music = SFX(151015610)
  249. Music.Looped = true;
  250. wait(1)
  251. Music:Play(151015610);
  252. -- ~CL 2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement