View difference between Paste ID: g9Rze040 and nMu90Kdq
SHOW: | | - or go back to the newest paste.
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
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
87
	local h,t
88
	--Give the server mouse data every second frame, but only if the values changed
89
	--If player is not moving their mouse, client won't fire events
90
	local HB = game:GetService("RunService").Heartbeat
91
	while true do
92
		if h~=Mouse.Hit or t~=Mouse.Target then
93
			h,t=Mouse.Hit,Mouse.Target
94
			Event:FireServer({isMouse=true,Target=t,Hit=h})
95
		end
96
		--Wait 2 frames
97
		for i=1,2 do
98
			HB:Wait()
99
		end
100
	end]==],script)
101
102
	----Sandboxed game object that allows the usage of client-side methods and services
103
	--Real game object
104
	local RealGame = game
105
106
	--Metatable for fake service
107
	local FakeService_Metatable = {
108
		__index = function(self,k)
109
			local s = rawget(self,"_RealService")
110
			if s then
111
				return typeof(s[k])=="function"
112
				and function(_,...)return s[k](s,...)end or s[k]
113
			end
114
		end,
115
		__newindex = function(self,k,v)
116
			local s = rawget(self,"_RealService")
117
			if s then s[k]=v end
118
		end
119
	}
120
	local function FakeService(t,RealService)
121
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
122
		return setmetatable(t,FakeService_Metatable)
123
	end
124
125
	--Fake game object
126
	local FakeGame = {
127
		GetService = function(self,s)
128
			return rawget(self,s) or RealGame:GetService(s)
129
		end,
130
		Players = FakeService({
131
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
132
		},"Players"),
133
		UserInputService = FakeService(UIS,"UserInputService"),
134
		ContextActionService = FakeService(CAS,"ContextActionService"),
135
		RunService = FakeService({
136
			_btrs = {},
137
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
138
			BindToRenderStep = function(self,name,_,fun)
139
				self._btrs[name] = self.Heartbeat:Connect(fun)
140
			end,
141
			UnbindFromRenderStep = function(self,name)
142
				self._btrs[name]:Disconnect()
143
			end,
144
		},"RunService")
145
	}
146
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
147
	FakeGame.service = FakeGame.GetService
148
	FakeService(FakeGame,game)
149
	--Changing owner to fake player object to support owner:GetMouse()
150
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
151
end
152
--Made by Ahtoh13131423144235, Rufus14
153
--Credit to ttyyuu12345 for the model to script plugin v4
154
--Credit to Rufus14 for helping
155
156
--[[
157
Change log:
158
-Added u attack
159
--]]
160
161
wait(2)
162
163
local player = game.Players.LocalPlayer
164
local char = player.Character
165
local mouse = player:GetMouse()
166
local canAttack = false
167
local damage = false
168
local rootJointC0 = char.HumanoidRootPart.RootJoint.C0
169
char.Torso["Right Shoulder"]:Remove()
170
171
--Converted with ttyyuu12345's model to script plugin v4
172
function sandbox(var,func)
173
	local env = getfenv(func)
174
	local newenv = setmetatable({},{
175
		__index = function(self,k)
176
			if k=="script" then
177
				return var
178
			else
179
				return env[k]
180
			end
181
		end,
182
	})
183
	setfenv(func,newenv)
184
	return func
185
end
186
cors = {}
187
mas = Instance.new("Model",game:GetService("Lighting"))
188
Part0 = Instance.new("Part")
189
Part0:BreakJoints()
190
Weld1 = Instance.new("Weld")
191
Weld2 = Instance.new("Weld")
192
Weld3 = Instance.new("Weld")
193
SpecialMesh2 = Instance.new("SpecialMesh")
194
Part0.Name = "Handle"
195
Part0.Parent = mas
196
Part0.BrickColor = BrickColor.new("Mid gray")
197
Part0.Rotation = Vector3.new(-180, 0, 180)
198
Part0.FormFactor = Enum.FormFactor.Plate
199
Part0.Size = Vector3.new(1, 1.20000005, 1)
200
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)
201
Part0.BottomSurface = Enum.SurfaceType.Smooth
202
Part0.TopSurface = Enum.SurfaceType.Smooth
203
Part0.Color = Color3.new(0.803922, 0.803922, 0.803922)
204
Part0.Position = Vector3.new(-18.1699982, 0.600000024, -0.639984131)
205
Part0.Orientation = Vector3.new(0, -180, 0)
206
Part0.Color = Color3.new(0.803922, 0.803922, 0.803922)
207
Weld1.C0 = Weld1.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
208
Weld1.Parent = char["Right Arm"]
209
Weld1.Part0 = char["Right Arm"]
210
Weld1.Part1 = Part0
211
Weld2.C0 = CFrame.new(1.5,0.5,0)
212
Weld2.C1 = CFrame.new(0,0.5,0)
213
Weld2.Parent = char.Torso
214
Weld2.Part0 = char.Torso
215
Weld2.Part1 = char["Right Arm"]
216
Weld3.C0 = CFrame.new(-1.5,0.5,0)
217
Weld3.C1 = CFrame.new(0,0.5,0)
218
Weld3.Parent = char.Torso
219
Weld3.Part0 = char.Torso
220
Weld3.Part1 = nil
221
SpecialMesh2.Parent = Part0
222
SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609"
223
SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
224
SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=10483355"
225
SpecialMesh2.MeshType = Enum.MeshType.FileMesh
226
SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
227
for i,v in pairs(mas:GetChildren()) do
228
	v.Parent = char
229
	pcall(function() v:MakeJoints() end)
230
end
231
mas:Destroy()
232
for i,v in pairs(cors) do
233
	spawn(function()
234
		pcall(v)
235
	end)
236
end
237
238
for i = 1,15 do
239
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
240
wait()
241
end
242
243
canAttack = true
244
245
char.Humanoid.Died:connect(function()
246
local sound = Instance.new("Sound",char)
247
sound.SoundId = "rbxassetid://182003383"
248
sound.Pitch = 1
249
sound:Play()
250
end)
251
252
mouse.Button1Down:connect(function()
253
if canAttack == true then
254
canAttack = false
255
for i = 1,10 do
256
Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1)
257
wait()
258
end
259
for i = 1,5 do
260
Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,0.1)
261
wait()
262
end
263
local drink = Instance.new("Sound", char)
264
drink.SoundId = "rbxassetid://10722059"
265
drink.Volume = 5
266
drink:Play()
267
wait(3)
268
char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").Health + 20
269
char:FindFirstChild("Humanoid").WalkSpeed = char:FindFirstChild("Humanoid").WalkSpeed + 0.1
270
for i = 1,5 do
271
Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,-0.1)
272
wait()
273
end
274
for i = 1,10 do
275
Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1)
276
wait()
277
end
278
canAttack = true
279
end
280
end)
281
282
mouse.KeyDown:connect(function(key)
283
if key:lower() == "q" and canAttack == true then
284
canAttack = false
285
for i = 1,10 do
286
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
287
wait()
288
end
289
damage = true
290
for i = 1,19 do
291
Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0)
292
wait()
293
end
294
for i = 1,9 do
295
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
296
wait()
297
end
298
damage = false
299
canAttack = true
300
elseif key:lower() == "e" and canAttack == true then
301
canAttack = false
302
Weld3.Part1 = char["Left Arm"]
303
char.Torso["Left Shoulder"].Part1 = nil
304
for i = 1,15 do
305
Weld3.C0 = Weld3.C0 * CFrame.Angles(0.1,0,0)
306
wait()
307
end
308
for i = 1,15 do
309
Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1)
310
Weld3.C0 = Weld3.C0 * CFrame.Angles(0,0,-0.1)
311
wait()
312
end
313
damage = true
314
for i = 1,400 do
315
char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
316
wait()
317
end
318
char.HumanoidRootPart.RootJoint.C0 = rootJointC0
319
damage = false
320
for i = 1,15 do
321
Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1)
322
wait()
323
end
324
Weld3.C0 = CFrame.new(-1.5,0.5,0)
325
char.Torso["Left Shoulder"].Part1 = char["Left Arm"]
326
Weld3.Part1 = nil
327
canAttack = true
328
elseif key:lower() == "r" and canAttack == true then
329
canAttack = false
330
for i = 1,13 do
331
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
332
wait()
333
end
334
wait(5)
335
Part0.Transparency = 1
336
local fake = Part0:Clone()
337
fake.Parent = char
338
fake.CanCollide = false
339
fake.Position = Part0.Position
340
fake.Transparency = 0
341
local bodyVelocity = Instance.new("BodyVelocity")
342
bodyVelocity.Parent = fake
343
bodyVelocity.Velocity = char.Torso.CFrame.lookVector * 90
344
fake.Touched:connect(function(hit)
345
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
346
hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
347
hit.Parent:FindFirstChild("Humanoid").Sit = true
348
fake:Remove()
349
end
350
end)
351
for i = 1,13 do
352
Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0)
353
wait()
354
end
355
for i = 1,100 do
356
Part0.Transparency = Part0.Transparency - 0.01
357
wait()
358
end
359
Part0.Transparency = 0
360
canAttack = true
361
elseif key:lower() == "t" and canAttack == true and mouse.Target ~= nil then
362
canAttack = false
363
local victim = mouse.Target.Parent
364
local humanoid = victim:FindFirstChild("Humanoid")
365
if humanoid == nil then
366
canAttack = true
367
return
368
end
369
humanoid.WalkSpeed = 0
370
char.Humanoid.WalkSpeed = 0
371
Part0.Transparency = 1
372
Weld2.C0 = CFrame.new(1.5,0.5,0)
373
local fake = Part0:Clone()
374
fake.Parent = char
375
fake.Transparency = 0
376
local fakeWeld = Instance.new("Weld")
377
fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
378
fakeWeld.Part0 = victim["Right Arm"]
379
fakeWeld.Part1 = fake
380
fakeWeld.Parent = victim["Right Arm"]
381
local armWeld = Instance.new("Weld")
382
armWeld.C0 = CFrame.new(1.5,0.5,0)
383
armWeld.C1 = CFrame.new(0,0.5,0)
384
armWeld.Parent = victim.Torso
385
armWeld.Part0 = victim.Torso
386
armWeld.Part1 = victim["Right Arm"]
387
for i = 1,15 do
388
armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
389
wait()
390
end
391
for i = 1,10 do
392
armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
393
wait()
394
end
395
for i = 1,5 do
396
fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
397
wait()
398
end
399
local drink = Instance.new("Sound", victim)
400
drink.SoundId = "rbxassetid://10722059"
401
drink.Volume = 5
402
drink:Play()
403
wait(3)
404
fakeWeld:Remove()
405
victim.Head.BrickColor = BrickColor.new("Medium green")
406
if victim.Head:FindFirstChild("face") then
407
victim.Head.face.Texture = "http://www.roblox.com/asset/?id=137852314"
408
end
409
humanoid.PlatformStand = true
410
for i = 1,humanoid.MaxHealth do
411
humanoid.Health = humanoid.Health - 1
412
wait()
413
end
414
char.Humanoid.WalkSpeed = 16
415
for i = 1,100 do
416
Part0.Transparency = Part0.Transparency - 0.01
417
wait()
418
end
419
Part0.Transparency = 0
420
for i = 1,15 do
421
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
422
wait()
423
end
424
canAttack = true
425
elseif key:lower() == "y" and canAttack == true and mouse.Target ~= nil then
426
canAttack = false
427
local victim = mouse.Target.Parent
428
local humanoid = victim:FindFirstChild("Humanoid")
429
if humanoid == nil then
430
canAttack = true
431
return
432
end
433
humanoid.WalkSpeed = 0
434
char.Humanoid.WalkSpeed = 0
435
Part0.Transparency = 1
436
Weld2.C0 = CFrame.new(1.5,0.5,0)
437
local fake = Part0:Clone()
438
fake.Parent = char
439
fake.Transparency = 0
440
local fakeWeld = Instance.new("Weld")
441
fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
442
fakeWeld.Part0 = victim["Right Arm"]
443
fakeWeld.Part1 = fake
444
fakeWeld.Parent = victim["Right Arm"]
445
local armWeld = Instance.new("Weld")
446
armWeld.C0 = CFrame.new(1.5,0.5,0)
447
armWeld.C1 = CFrame.new(0,0.5,0)
448
armWeld.Parent = victim.Torso
449
armWeld.Part0 = victim.Torso
450
armWeld.Part1 = victim["Right Arm"]
451
for i = 1,15 do
452
armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
453
wait()
454
end
455
for i = 1,10 do
456
armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
457
wait()
458
end
459
for i = 1,5 do
460
fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
461
wait()
462
end
463
local drink = Instance.new("Sound", victim)
464
drink.SoundId = "rbxassetid://10722059"
465
drink.Volume = 5
466
drink:Play()
467
wait(3)
468
fake:Remove()
469
humanoid.Health = humanoid.Health + 20
470
char.Humanoid.WalkSpeed = 16
471
for i = 1,10 do
472
armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,0.1)
473
wait()
474
end
475
for i = 1,15 do
476
armWeld.C0 = armWeld.C0 * CFrame.Angles(-0.1,0,0)
477
wait()
478
end
479
for i = 1,100 do
480
Part0.Transparency = Part0.Transparency - 0.01
481
wait()
482
end
483
Part0.Transparency = 0
484
for i = 1,15 do
485
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
486
wait()
487
end
488
canAttack = true
489
elseif key:lower() == "u" and canAttack == true and mouse.Target ~= nil then
490
canAttack = false
491
local victim = mouse.Target.Parent
492
local humanoid = victim:FindFirstChild("Humanoid")
493
if humanoid == nil then
494
canAttack = true
495
return
496
end
497
humanoid.WalkSpeed = 0
498
char.Humanoid.WalkSpeed = 0
499
Part0.Transparency = 1
500
Weld2.C0 = CFrame.new(1.5,0.5,0)
501
local fake = Part0:Clone()
502
fake.Parent = char
503
fake.Transparency = 0
504
local fakeWeld = Instance.new("Weld")
505
fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
506
fakeWeld.Part0 = victim["Right Arm"]
507
fakeWeld.Part1 = fake
508
fakeWeld.Parent = victim["Right Arm"]
509
local armWeld = Instance.new("Weld")
510
armWeld.C0 = CFrame.new(1.5,0.5,0)
511
armWeld.C1 = CFrame.new(0,0.5,0)
512
armWeld.Parent = victim.Torso
513
armWeld.Part0 = victim.Torso
514
armWeld.Part1 = victim["Right Arm"]
515
for i = 1,15 do
516
armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
517
wait()
518
end
519
for i = 1,10 do
520
armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
521
wait()
522
end
523
for i = 1,5 do
524
fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
525
wait()
526
end
527
local drink = Instance.new("Sound", victim)
528
drink.SoundId = "rbxassetid://10722059"
529
drink.Volume = 5
530
drink:Play()
531
wait(3)
532
local freezing = Instance.new("Sound", victim)
533
freezing.SoundId = "rbxassetid://268249319"
534
freezing.Volume = 5
535
freezing:Play()
536
local value = Instance.new("BoolValue",victim)
537
value.Name = "Frozen"
538
value.Value = true
539
for i,v in pairs(victim:GetChildren()) do
540
if v.ClassName == "Part" then
541
v.BrickColor = BrickColor.new("Bright blue")
542
v.Anchored = true
543
end
544
end
545
char.Humanoid.WalkSpeed = 16
546
for i = 1,100 do
547
Part0.Transparency = Part0.Transparency - 0.01
548
wait()
549
end
550
Part0.Transparency = 0
551
for i = 1,15 do
552
Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
553
wait()
554
end
555
canAttack = true
556
end
557
end)
558
559
Part0.Touched:connect(function(hit)
560
if damage == true then
561
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
562
hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
563
hit.Parent:FindFirstChild("Humanoid").Sit = true
564
local hit0 = Instance.new("Sound", hit)
565
hit0.SoundId = "rbxassetid://260430060"
566
hit0.Volume = 3
567
local hit1 = Instance.new("Sound", hit)
568
hit1.SoundId = "rbxassetid://138087186"
569
hit1.Volume = 3
570
local hit2 = Instance.new("Sound", hit)
571
hit2.SoundId = "rbxassetid://131237241"
572
hit2.Volume = 3
573
local hit3 = Instance.new("Sound", hit)
574
hit3.SoundId = "rbxassetid://278062209"
575
hit3.Volume = 3
576
hit3.TimePosition = 0.33
577
local math1 = math.random(1,4)
578
if math1 == 1 then
579
hit0:Play()
580
end
581
if math1 == 2 then
582
hit1:Play()
583
end
584
if math1 == 3 then
585
hit2:Play()
586
end
587
if math1 == 4 then
588
hit3:Play()
589
end
590
if hit.Parent:FindFirstChild("Frozen") then
591
local hit0 = Instance.new("Sound", hit)
592
hit0.SoundId = "rbxassetid://516789356"
593
hit0.Volume = 5
594
hit0:Play()
595
hit.Parent.Frozen:Remove()
596
for i,v in pairs(hit.Parent:GetChildren()) do
597
if v.ClassName == "Part" then
598
v.Anchored = false
599
end
600
end
601
end
602
end
603
end
604
end)