SHOW:
|
|
- or go back to the newest paste.
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(0.020,0.020,0.015) | |
16 | - | TrainMesh.MeshId = "rbxassetid://430819577" |
16 | + | TrainMesh.MeshId = "rbxassetid://436231108" |
17 | - | TrainMesh.TextureId = "rbxassetid://430819580" |
17 | + | TrainMesh.TextureId = "rbxassetid://455331542" |
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=50607824" |
36 | + | Particle.Texture = "http://www.roblox.com/asset/?id=1155900106" |
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) |
64 | + | local Whistle = SFX(159490394) |
65 | Whistle:Play() | |
66 | end | |
67 | end | |
68 | end | |
69 | end | |
70 | end) | |
71 | ||
72 | - | local Music = SFX(222274242) |
72 | + | local Music = SFX(520437561) |
73 | Music.Looped = true; | |
74 | wait(1) | |
75 | Music:Play(); |