SHOW:
|
|
- or go back to the newest paste.
1 | - | --Made by Ahtoh13131423144235, Rufus14 |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end --Made by Ahtoh13131423144235, Rufus14 | |
6 | --Credit to ttyyuu12345 for the model to script plugin v4 | |
7 | --Credit to Rufus14 for helping | |
8 | ||
9 | --[[ | |
10 | Change log: | |
11 | -Added u attack | |
12 | --]] | |
13 | ||
14 | wait(2) | |
15 | ||
16 | local player = game.Players.LocalPlayer | |
17 | local char = player.Character | |
18 | local mouse = player:GetMouse() | |
19 | local canAttack = false | |
20 | local damage = false | |
21 | local rootJointC0 = char.HumanoidRootPart.RootJoint.C0 | |
22 | char.Torso["Right Shoulder"]:Remove() | |
23 | ||
24 | --Converted with ttyyuu12345's model to script plugin v4 | |
25 | function sandbox(var,func) | |
26 | local env = getfenv(func) | |
27 | local newenv = setmetatable({},{ | |
28 | __index = function(self,k) | |
29 | if k=="script" then | |
30 | return var | |
31 | else | |
32 | return env[k] | |
33 | end | |
34 | end, | |
35 | }) | |
36 | setfenv(func,newenv) | |
37 | return func | |
38 | end | |
39 | cors = {} | |
40 | mas = Instance.new("Model",game:GetService("Lighting")) | |
41 | Part0 = Instance.new("Part") | |
42 | Part0:BreakJoints() | |
43 | Weld1 = Instance.new("Weld") | |
44 | Weld2 = Instance.new("Weld") | |
45 | Weld3 = Instance.new("Weld") | |
46 | SpecialMesh2 = Instance.new("SpecialMesh") | |
47 | Part0.Name = "Handle" | |
48 | Part0.Parent = mas | |
49 | Part0.BrickColor = BrickColor.new("Mid gray") | |
50 | Part0.Rotation = Vector3.new(-180, 0, 180) | |
51 | Part0.FormFactor = Enum.FormFactor.Plate | |
52 | Part0.Size = Vector3.new(1, 1.20000005, 1) | |
53 | Part0.CFrame = CFrame.new(-18.1699982, 0.600000024, -0.639984131, -1, -1.21401766e-17, -2.78761293e-23, -1.21401766e-17, 1, 1.21401766e-17, 2.78761293e-23, 1.21401766e-17, -1) | |
54 | Part0.BottomSurface = Enum.SurfaceType.Smooth | |
55 | Part0.TopSurface = Enum.SurfaceType.Smooth | |
56 | Part0.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
57 | Part0.Position = Vector3.new(-18.1699982, 0.600000024, -0.639984131) | |
58 | Part0.Orientation = Vector3.new(0, -180, 0) | |
59 | Part0.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
60 | Weld1.C0 = Weld1.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
61 | Weld1.Parent = char["Right Arm"] | |
62 | Weld1.Part0 = char["Right Arm"] | |
63 | Weld1.Part1 = Part0 | |
64 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
65 | Weld2.C1 = CFrame.new(0,0.5,0) | |
66 | Weld2.Parent = char.Torso | |
67 | Weld2.Part0 = char.Torso | |
68 | Weld2.Part1 = char["Right Arm"] | |
69 | Weld3.C0 = CFrame.new(-1.5,0.5,0) | |
70 | Weld3.C1 = CFrame.new(0,0.5,0) | |
71 | Weld3.Parent = char.Torso | |
72 | Weld3.Part0 = char.Torso | |
73 | Weld3.Part1 = nil | |
74 | SpecialMesh2.Parent = Part0 | |
75 | SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609" | |
76 | SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5) | |
77 | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=10483355" | |
78 | SpecialMesh2.MeshType = Enum.MeshType.FileMesh | |
79 | SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5) | |
80 | for i,v in pairs(mas:GetChildren()) do | |
81 | v.Parent = char | |
82 | pcall(function() v:MakeJoints() end) | |
83 | end | |
84 | mas:Destroy() | |
85 | for i,v in pairs(cors) do | |
86 | spawn(function() | |
87 | pcall(v) | |
88 | end) | |
89 | end | |
90 | ||
91 | for i = 1,15 do | |
92 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
93 | wait() | |
94 | end | |
95 | ||
96 | canAttack = true | |
97 | ||
98 | char.Humanoid.Died:connect(function() | |
99 | local sound = Instance.new("Sound",char) | |
100 | sound.SoundId = "rbxassetid://182003383" | |
101 | sound.Pitch = 1 | |
102 | sound:Play() | |
103 | end) | |
104 | ||
105 | mouse.Button1Down:connect(function() | |
106 | if canAttack == true then | |
107 | canAttack = false | |
108 | for i = 1,10 do | |
109 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1) | |
110 | wait() | |
111 | end | |
112 | for i = 1,5 do | |
113 | Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,0.1) | |
114 | wait() | |
115 | end | |
116 | local drink = Instance.new("Sound", char) | |
117 | drink.SoundId = "rbxassetid://10722059" | |
118 | drink.Volume = 5 | |
119 | drink:Play() | |
120 | wait(3) | |
121 | char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").Health + 20 | |
122 | char:FindFirstChild("Humanoid").WalkSpeed = char:FindFirstChild("Humanoid").WalkSpeed + 0.1 | |
123 | for i = 1,5 do | |
124 | Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,-0.1) | |
125 | wait() | |
126 | end | |
127 | for i = 1,10 do | |
128 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1) | |
129 | wait() | |
130 | end | |
131 | canAttack = true | |
132 | end | |
133 | end) | |
134 | ||
135 | mouse.KeyDown:connect(function(key) | |
136 | if key:lower() == "q" and canAttack == true then | |
137 | canAttack = false | |
138 | for i = 1,10 do | |
139 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
140 | wait() | |
141 | end | |
142 | damage = true | |
143 | for i = 1,19 do | |
144 | Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0) | |
145 | wait() | |
146 | end | |
147 | for i = 1,9 do | |
148 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
149 | wait() | |
150 | end | |
151 | damage = false | |
152 | canAttack = true | |
153 | elseif key:lower() == "e" and canAttack == true then | |
154 | canAttack = false | |
155 | Weld3.Part1 = char["Left Arm"] | |
156 | char.Torso["Left Shoulder"].Part1 = nil | |
157 | for i = 1,15 do | |
158 | Weld3.C0 = Weld3.C0 * CFrame.Angles(0.1,0,0) | |
159 | wait() | |
160 | end | |
161 | for i = 1,15 do | |
162 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1) | |
163 | Weld3.C0 = Weld3.C0 * CFrame.Angles(0,0,-0.1) | |
164 | wait() | |
165 | end | |
166 | damage = true | |
167 | for i = 1,400 do | |
168 | char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1) | |
169 | wait() | |
170 | end | |
171 | char.HumanoidRootPart.RootJoint.C0 = rootJointC0 | |
172 | damage = false | |
173 | for i = 1,15 do | |
174 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1) | |
175 | wait() | |
176 | end | |
177 | Weld3.C0 = CFrame.new(-1.5,0.5,0) | |
178 | char.Torso["Left Shoulder"].Part1 = char["Left Arm"] | |
179 | Weld3.Part1 = nil | |
180 | canAttack = true | |
181 | elseif key:lower() == "r" and canAttack == true then | |
182 | canAttack = false | |
183 | for i = 1,13 do | |
184 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
185 | wait() | |
186 | end | |
187 | wait(5) | |
188 | Part0.Transparency = 1 | |
189 | local fake = Part0:Clone() | |
190 | fake.Parent = char | |
191 | fake.CanCollide = false | |
192 | fake.Position = Part0.Position | |
193 | fake.Transparency = 0 | |
194 | local bodyVelocity = Instance.new("BodyVelocity") | |
195 | bodyVelocity.Parent = fake | |
196 | bodyVelocity.Velocity = char.Torso.CFrame.lookVector * 90 | |
197 | fake.Touched:connect(function(hit) | |
198 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then | |
199 | hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10 | |
200 | hit.Parent:FindFirstChild("Humanoid").Sit = true | |
201 | fake:Remove() | |
202 | end | |
203 | end) | |
204 | for i = 1,13 do | |
205 | Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0) | |
206 | wait() | |
207 | end | |
208 | for i = 1,100 do | |
209 | Part0.Transparency = Part0.Transparency - 0.01 | |
210 | wait() | |
211 | end | |
212 | Part0.Transparency = 0 | |
213 | canAttack = true | |
214 | elseif key:lower() == "t" and canAttack == true and mouse.Target ~= nil then | |
215 | canAttack = false | |
216 | local victim = mouse.Target.Parent | |
217 | local humanoid = victim:FindFirstChild("Humanoid") | |
218 | if humanoid == nil then | |
219 | canAttack = true | |
220 | return | |
221 | end | |
222 | humanoid.WalkSpeed = 0 | |
223 | char.Humanoid.WalkSpeed = 0 | |
224 | Part0.Transparency = 1 | |
225 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
226 | local fake = Part0:Clone() | |
227 | fake.Parent = char | |
228 | fake.Transparency = 0 | |
229 | local fakeWeld = Instance.new("Weld") | |
230 | fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
231 | fakeWeld.Part0 = victim["Right Arm"] | |
232 | fakeWeld.Part1 = fake | |
233 | fakeWeld.Parent = victim["Right Arm"] | |
234 | local armWeld = Instance.new("Weld") | |
235 | armWeld.C0 = CFrame.new(1.5,0.5,0) | |
236 | armWeld.C1 = CFrame.new(0,0.5,0) | |
237 | armWeld.Parent = victim.Torso | |
238 | armWeld.Part0 = victim.Torso | |
239 | armWeld.Part1 = victim["Right Arm"] | |
240 | for i = 1,15 do | |
241 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0) | |
242 | wait() | |
243 | end | |
244 | for i = 1,10 do | |
245 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1) | |
246 | wait() | |
247 | end | |
248 | for i = 1,5 do | |
249 | fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1) | |
250 | wait() | |
251 | end | |
252 | local drink = Instance.new("Sound", victim) | |
253 | drink.SoundId = "rbxassetid://10722059" | |
254 | drink.Volume = 5 | |
255 | drink:Play() | |
256 | wait(3) | |
257 | fakeWeld:Remove() | |
258 | victim.Head.BrickColor = BrickColor.new("Medium green") | |
259 | if victim.Head:FindFirstChild("face") then | |
260 | victim.Head.face.Texture = "http://www.roblox.com/asset/?id=137852314" | |
261 | end | |
262 | humanoid.PlatformStand = true | |
263 | for i = 1,humanoid.MaxHealth do | |
264 | humanoid.Health = humanoid.Health - 1 | |
265 | wait() | |
266 | end | |
267 | char.Humanoid.WalkSpeed = 16 | |
268 | for i = 1,100 do | |
269 | Part0.Transparency = Part0.Transparency - 0.01 | |
270 | wait() | |
271 | end | |
272 | Part0.Transparency = 0 | |
273 | for i = 1,15 do | |
274 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
275 | wait() | |
276 | end | |
277 | canAttack = true | |
278 | elseif key:lower() == "y" and canAttack == true and mouse.Target ~= nil then | |
279 | canAttack = false | |
280 | local victim = mouse.Target.Parent | |
281 | local humanoid = victim:FindFirstChild("Humanoid") | |
282 | if humanoid == nil then | |
283 | canAttack = true | |
284 | return | |
285 | end | |
286 | humanoid.WalkSpeed = 0 | |
287 | char.Humanoid.WalkSpeed = 0 | |
288 | Part0.Transparency = 1 | |
289 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
290 | local fake = Part0:Clone() | |
291 | fake.Parent = char | |
292 | fake.Transparency = 0 | |
293 | local fakeWeld = Instance.new("Weld") | |
294 | fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
295 | fakeWeld.Part0 = victim["Right Arm"] | |
296 | fakeWeld.Part1 = fake | |
297 | fakeWeld.Parent = victim["Right Arm"] | |
298 | local armWeld = Instance.new("Weld") | |
299 | armWeld.C0 = CFrame.new(1.5,0.5,0) | |
300 | armWeld.C1 = CFrame.new(0,0.5,0) | |
301 | armWeld.Parent = victim.Torso | |
302 | armWeld.Part0 = victim.Torso | |
303 | armWeld.Part1 = victim["Right Arm"] | |
304 | for i = 1,15 do | |
305 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0) | |
306 | wait() | |
307 | end | |
308 | for i = 1,10 do | |
309 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1) | |
310 | wait() | |
311 | end | |
312 | for i = 1,5 do | |
313 | fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1) | |
314 | wait() | |
315 | end | |
316 | local drink = Instance.new("Sound", victim) | |
317 | drink.SoundId = "rbxassetid://10722059" | |
318 | drink.Volume = 5 | |
319 | drink:Play() | |
320 | wait(3) | |
321 | fake:Remove() | |
322 | humanoid.Health = humanoid.Health + 20 | |
323 | char.Humanoid.WalkSpeed = 16 | |
324 | for i = 1,10 do | |
325 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,0.1) | |
326 | wait() | |
327 | end | |
328 | for i = 1,15 do | |
329 | armWeld.C0 = armWeld.C0 * CFrame.Angles(-0.1,0,0) | |
330 | wait() | |
331 | end | |
332 | for i = 1,100 do | |
333 | Part0.Transparency = Part0.Transparency - 0.01 | |
334 | wait() | |
335 | end | |
336 | Part0.Transparency = 0 | |
337 | for i = 1,15 do | |
338 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
339 | wait() | |
340 | end | |
341 | canAttack = true | |
342 | elseif key:lower() == "u" and canAttack == true and mouse.Target ~= nil then | |
343 | canAttack = false | |
344 | local victim = mouse.Target.Parent | |
345 | local humanoid = victim:FindFirstChild("Humanoid") | |
346 | if humanoid == nil then | |
347 | canAttack = true | |
348 | return | |
349 | end | |
350 | humanoid.WalkSpeed = 0 | |
351 | char.Humanoid.WalkSpeed = 0 | |
352 | Part0.Transparency = 1 | |
353 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
354 | local fake = Part0:Clone() | |
355 | fake.Parent = char | |
356 | fake.Transparency = 0 | |
357 | local fakeWeld = Instance.new("Weld") | |
358 | fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
359 | fakeWeld.Part0 = victim["Right Arm"] | |
360 | fakeWeld.Part1 = fake | |
361 | fakeWeld.Parent = victim["Right Arm"] | |
362 | local armWeld = Instance.new("Weld") | |
363 | armWeld.C0 = CFrame.new(1.5,0.5,0) | |
364 | armWeld.C1 = CFrame.new(0,0.5,0) | |
365 | armWeld.Parent = victim.Torso | |
366 | armWeld.Part0 = victim.Torso | |
367 | armWeld.Part1 = victim["Right Arm"] | |
368 | for i = 1,15 do | |
369 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0) | |
370 | wait() | |
371 | end | |
372 | for i = 1,10 do | |
373 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1) | |
374 | wait() | |
375 | end | |
376 | for i = 1,5 do | |
377 | fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1) | |
378 | wait() | |
379 | end | |
380 | local drink = Instance.new("Sound", victim) | |
381 | drink.SoundId = "rbxassetid://10722059" | |
382 | drink.Volume = 5 | |
383 | drink:Play() | |
384 | wait(3) | |
385 | local freezing = Instance.new("Sound", victim) | |
386 | freezing.SoundId = "rbxassetid://268249319" | |
387 | freezing.Volume = 5 | |
388 | freezing:Play() | |
389 | local value = Instance.new("BoolValue",victim) | |
390 | value.Name = "Frozen" | |
391 | value.Value = true | |
392 | for i,v in pairs(victim:GetChildren()) do | |
393 | if v.ClassName == "Part" then | |
394 | v.BrickColor = BrickColor.new("Bright blue") | |
395 | v.Anchored = true | |
396 | end | |
397 | end | |
398 | char.Humanoid.WalkSpeed = 16 | |
399 | for i = 1,100 do | |
400 | Part0.Transparency = Part0.Transparency - 0.01 | |
401 | wait() | |
402 | end | |
403 | Part0.Transparency = 0 | |
404 | for i = 1,15 do | |
405 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
406 | wait() | |
407 | end | |
408 | canAttack = true | |
409 | end | |
410 | end) | |
411 | ||
412 | Part0.Touched:connect(function(hit) | |
413 | if damage == true then | |
414 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then | |
415 | hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10 | |
416 | hit.Parent:FindFirstChild("Humanoid").Sit = true | |
417 | local hit0 = Instance.new("Sound", hit) | |
418 | hit0.SoundId = "rbxassetid://260430060" | |
419 | hit0.Volume = 3 | |
420 | local hit1 = Instance.new("Sound", hit) | |
421 | hit1.SoundId = "rbxassetid://138087186" | |
422 | hit1.Volume = 3 | |
423 | local hit2 = Instance.new("Sound", hit) | |
424 | hit2.SoundId = "rbxassetid://131237241" | |
425 | hit2.Volume = 3 | |
426 | local hit3 = Instance.new("Sound", hit) | |
427 | hit3.SoundId = "rbxassetid://278062209" | |
428 | hit3.Volume = 3 | |
429 | hit3.TimePosition = 0.33 | |
430 | local math1 = math.random(1,4) | |
431 | if math1 == 1 then | |
432 | hit0:Play() | |
433 | end | |
434 | if math1 == 2 then | |
435 | hit1:Play() | |
436 | end | |
437 | if math1 == 3 then | |
438 | hit2:Play() | |
439 | end | |
440 | if math1 == 4 then | |
441 | hit3:Play() | |
442 | end | |
443 | if hit.Parent:FindFirstChild("Frozen") then | |
444 | local hit0 = Instance.new("Sound", hit) | |
445 | hit0.SoundId = "rbxassetid://516789356" | |
446 | hit0.Volume = 5 | |
447 | hit0:Play() | |
448 | hit.Parent.Frozen:Remove() | |
449 | for i,v in pairs(hit.Parent:GetChildren()) do | |
450 | if v.ClassName == "Part" then | |
451 | v.Anchored = false | |
452 | end | |
453 | end | |
454 | end | |
455 | end | |
456 | end | |
457 | end) |