Advertisement
DarkScriptZEditors

Rufus Coca Cola FE

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