SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ | |
| 2 | Thomas The Dank Engine: | |
| 3 | By: KrystalTeam | |
| 4 | Features: Being a dank engine that kill people | |
| 5 | Version: 1.0.0.2 | |
| 6 | --]] | |
| 7 | ||
| 8 | local p = game.Players.LocalPlayer.Character | |
| 9 | local weld = Instance.new("Weld",p.Torso)
| |
| 10 | weld.Part0 = p.Torso | |
| 11 | ||
| 12 | local train = Instance.new("Part",p.Torso)
| |
| 13 | train.Anchored = true | |
| 14 | train.CanCollide = false | |
| 15 | train.Size = Vector3.new(3,2,6) | |
| 16 | train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
| 17 | weld.Part1 = train | |
| 18 | weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0) | |
| 19 | train.Anchored = false | |
| 20 | local TrainMesh = Instance.new("SpecialMesh",train)
| |
| 21 | TrainMesh.MeshType = Enum.MeshType.FileMesh | |
| 22 | TrainMesh.Scale = Vector3.new(0.050,0.050,0.045) | |
| 23 | - | TrainMesh.MeshId = "rbxassetid://430571807" |
| 23 | + | TrainMesh.MeshId = "rbxassetid://439124838" |
| 24 | - | TrainMesh.TextureId = "rbxassetid://430571813" |
| 24 | + | TrainMesh.TextureId = "rbxassetid://439124850" |
| 25 | ||
| 26 | ||
| 27 | local weld2 = Instance.new("Weld",p.Torso)
| |
| 28 | weld2.Part0 = p.Torso | |
| 29 | local Smoke = Instance.new("Part",p.Torso)
| |
| 30 | Smoke.Anchored = true | |
| 31 | Smoke.CanCollide = false | |
| 32 | Smoke.Size = Vector3.new(1,1,1) | |
| 33 | Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
| 34 | weld2.Part1 = Smoke | |
| 35 | weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0) | |
| 36 | Smoke.Anchored = false | |
| 37 | Smoke.Transparency = 1; | |
| 38 | ||
| 39 | local Particle = Instance.new("ParticleEmitter",Smoke)
| |
| 40 | Particle.Rate = 50; | |
| 41 | Particle.Speed = NumberRange.new(30,60); | |
| 42 | Particle.VelocitySpread = 4; | |
| 43 | Particle.Texture = "rbxassetid://185414427" | |
| 44 | ||
| 45 | local Light = Instance.new("SpotLight",train)
| |
| 46 | Light.Angle = 45; | |
| 47 | Light.Brightness = 100; | |
| 48 | Light.Face = Enum.NormalId.Back; | |
| 49 | Light.Range = 30; | |
| 50 | ||
| 51 | p.Humanoid.WalkSpeed = 60; | |
| 52 | ||
| 53 | ||
| 54 | for i,v in pairs(p:GetChildren()) do | |
| 55 | if v:IsA("Part") then
| |
| 56 | v.Transparency = 1; | |
| 57 | elseif v:IsA("Hat") then
| |
| 58 | v:Destroy() | |
| 59 | elseif v:IsA("Model") then
| |
| 60 | v:Destroy() | |
| 61 | end | |
| 62 | end | |
| 63 | ||
| 64 | local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
| |
| 65 | train.Touched:connect(function(p) | |
| 66 | if p.Parent then | |
| 67 | if p.Parent:IsA("Model") then
| |
| 68 | if game.Players:FindFirstChild(p.Parent.Name) then | |
| 69 | if p.Parent.Name ~= game.Players.LocalPlayer.Name then | |
| 70 | game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints() | |
| 71 | local Whistle = SFX(130767645) | |
| 72 | Whistle:Play() | |
| 73 | end | |
| 74 | end | |
| 75 | end | |
| 76 | end | |
| 77 | end) | |
| 78 | ||
| 79 | - | local Music = SFX(534298340) |
| 79 | + | local Music = SFX(552455038) |
| 80 | Music.Looped = true; | |
| 81 | wait(1) | |
| 82 | - | Music:Play(); |
| 82 | + | Music:Play(); |
| 83 | ||
| 84 | -- Objects | |
| 85 | ||
| 86 | local ScreenGui = Instance.new("ScreenGui")
| |
| 87 | local TextButton = Instance.new("TextButton")
| |
| 88 | ||
| 89 | -- Properties | |
| 90 | ||
| 91 | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui | |
| 92 | ||
| 93 | TextButton.Parent = ScreenGui | |
| 94 | TextButton.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 95 | TextButton.Size = UDim2.new(0, 200, 0, 50) | |
| 96 | TextButton.Font = Enum.Font.SourceSans | |
| 97 | TextButton.FontSize = Enum.FontSize.Size14 | |
| 98 | TextButton.Text = "shrek roar" | |
| 99 | TextButton.TextSize = 14 | |
| 100 | ||
| 101 | --[[Function/s being made!]] | |
| 102 | function PlayMusic(ID) | |
| 103 | for i, v in pairs (game.Workspace:GetChildren()) do | |
| 104 | if v:IsA("Sound") then
| |
| 105 | end | |
| 106 | end | |
| 107 | local music = Instance.new("Sound")
| |
| 108 | local asset = "rbxassetid://" | |
| 109 | music.SoundId = asset .. ID | |
| 110 | music.Parent = workspace | |
| 111 | music.Volume = math.huge | |
| 112 | music.Looped = false | |
| 113 | music:Play() | |
| 114 | end | |
| 115 | --[[Connecting functions!]] | |
| 116 | TextButton.MouseButton1Down:connect(function() | |
| 117 | PlayMusic(449830565) | |
| 118 | end) | |
| 119 | ||
| 120 | print("thx for use dis m8, k bye")
| |
| 121 | ||
| 122 | char.Humanoid.MaxHealth = math.huge | |
| 123 | wait() | |
| 124 | char.Humanoid.Health = math.huge |