Advertisement
Void_scripter0

Cola

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