SHOW:
|
|
- or go back to the newest paste.
1 | --{{Made by Strazos}}-- | |
2 | ||
3 | local p = game.Players.LocalPlayer | |
4 | local char = p.Character | |
5 | local larm = char["Left Arm"] | |
6 | local rarm = char["Right Arm"] | |
7 | local lleg = char["Left Leg"] | |
8 | local rleg = char["Right Leg"] | |
9 | local hed = char.Head | |
10 | local torso = char.Torso | |
11 | local hum = char.Humanoid | |
12 | local weld = Instance.new("Weld",torso) | |
13 | weld.Part0 = torso | |
14 | ||
15 | larm.Transparency = 1 | |
16 | rarm.Transparency = 1 | |
17 | lleg.Transparency = 1 | |
18 | rleg.Transparency = 1 | |
19 | hed.Transparency = 1 | |
20 | torso.Transparency = 1 | |
21 | ||
22 | ||
23 | local train = Instance.new("Part",torso) | |
24 | train.Anchored = true | |
25 | train.CanCollide = false | |
26 | train.Size = Vector3.new(1,1,1) | |
27 | train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
28 | weld.Part1 = train | |
29 | weld.C1 = CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(180),0) | |
30 | train.Anchored = false | |
31 | local TrainMesh = Instance.new("SpecialMesh",train) | |
32 | TrainMesh.MeshType = Enum.MeshType.FileMesh | |
33 | TrainMesh.Scale = Vector3.new(3,3,3) | |
34 | TrainMesh.MeshId = "rbxassetid://471480829" | |
35 | TrainMesh.TextureId = "rbxassetid://471480833" | |
36 | ||
37 | ||
38 | hum.WalkSpeed = 120; | |
39 | ||
40 | ||
41 | for i,v in pairs(char:GetChildren()) do | |
42 | if v:IsA("Part") then | |
43 | v.Transparency = 1; | |
44 | elseif v:IsA("Hat") then | |
45 | v:Destroy() | |
46 | elseif v:IsA("Model") then | |
47 | v:Destroy() | |
48 | end | |
49 | end | |
50 | ||
51 | ||
52 | - | local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 64364643643; return s; end |
52 | + | local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://292480358"..id; s.Volume = 64364643643; return s; end |
53 | train.Touched:connect(function(p) | |
54 | if p.Parent then | |
55 | if p.Parent:IsA("Model") then | |
56 | if game.Players:FindFirstChild(p.Parent.Name) then | |
57 | if p.Parent.Name ~= game.Players.LocalPlayer.Name then | |
58 | game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints() | |
59 | local Whistle = SFX(154365429) | |
60 | Whistle:Play() | |
61 | end | |
62 | end | |
63 | end | |
64 | end | |
65 | end) | |
66 | ||
67 | local Music = SFX(468775372) | |
68 | Music.Looped = true; | |
69 | wait(1) | |
70 | Music:Play(); | |
71 | ||
72 | ||
73 | local particleemitter = Instance.new("ParticleEmitter", torso) | |
74 | particleemitter.Texture = "http://www.roblox.com/asset/?id=243088609" | |
75 | particleemitter.Lifetime = NumberRange.new(4) | |
76 | particleemitter.Speed = NumberRange.new(10) | |
77 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 2)}) | |
78 | particleemitter.RotSpeed = NumberRange.new(-55, 55) | |
79 | particleemitter.Rate = 80 | |
80 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.7), NumberSequenceKeypoint.new(0.9, 1), NumberSequenceKeypoint.new(1, 1)}) | |
81 | particleemitter.LightEmission = 0 | |
82 | particleemitter.EmissionDirection = "Back" | |
83 | particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here | |
84 | ------------------------------------------------- | |
85 | --rgb function by Strazos-- | |
86 | ||
87 | function HSLtoRGB(hue, sat, light) | |
88 | local c = light > .5 and (2 - 2 * light) * sat or (2 * light) * sat | |
89 | local h2 = hue / 60 | |
90 | local x = c * (1 - math.abs((h2 % 2) - 1)) | |
91 | local rgbvals = {{c, x, 0}, {x, c, 0}, {0, c, x}, {0, x, c}, {x, 0, c}, {c, 0, x}} | |
92 | local rgb = rgbvals[math.floor(h2) + 1] | |
93 | for i = 1, 3 do rgb[i] = rgb[i] + (light - .5 * c) end | |
94 | return Color3.new(rgb[1], rgb[2], rgb[3]) | |
95 | end | |
96 | ||
97 | local torso = script.Parent | |
98 | ||
99 | spawn(function() | |
100 | while wait() do | |
101 | for i = 1,150 do | |
102 | wait() | |
103 | train.Mesh.VertexColor = Vector3.new(HSLtoRGB(i*2,1,0.5).r,HSLtoRGB(i*2,1,0.5).g,HSLtoRGB(i*2,1,0.5).b) | |
104 | end | |
105 | local reversei = 150 | |
106 | for i = 1,150 do | |
107 | wait() | |
108 | train.Mesh.VertexColor = Vector3.new(HSLtoRGB(reversei*2,1,0.5).r,HSLtoRGB(reversei*2,1,0.5).g,HSLtoRGB(reversei*2,1,0.5).b) | |
109 | reversei = reversei-1 | |
110 | end | |
111 | end | |
112 | end) | |
113 | ||
114 | --------------------------------------------------- | |
115 | local plr = game.Players.LocalPlayer | |
116 | local chr = plr.Character | |
117 | local maus = plr:GetMouse() | |
118 | local PGui=plr.PlayerGui | |
119 | local lleg = chr["Left Leg"] | |
120 | local rleg = chr["Right Leg"] | |
121 | local larm = chr["Left Arm"] | |
122 | local rarm = chr["Right Arm"] | |
123 | local hed = chr.Head | |
124 | local rutprt = chr.HumanoidRootPart | |
125 | local torso = chr.Torso | |
126 | local pseudohead=hed:Clone() | |
127 | for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end | |
128 | pseudohead.Name='PseudoHead' | |
129 | pseudohead.Parent=chr.Head | |
130 | local pseudoweld=Instance.new('Weld',torso) | |
131 | pseudoweld.Part0=hed | |
132 | pseudoweld.Name='PseudoHeadWeld' | |
133 | pseudoweld.Part1=pseudohead | |
134 | hed.Transparency=1 | |
135 | for i,x in pairs(chr:GetChildren()) do | |
136 | if x:IsA'HHat' then x:destroy'' end end | |
137 | for i,x in pairs(chr:GetChildren()) do | |
138 | for a,v in pairs(x:GetChildren()) do | |
139 | if v:IsA'CharacterMesh' then v:destroy'' | |
140 | end | |
141 | end | |
142 | end |