Advertisement
Guest User

Untitled

a guest
May 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.48 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 = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy ~= InternalData.RealOwner then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. Mouse:TriggerEvent("Move")
  25. elseif Input.Sound then
  26. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  27. else
  28. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  29. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  30. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  80. if Library == "RbxUtility" then
  81. return setmetatable({},{
  82. __tostring = function() return "RbxUtility" end;
  83. __index = function(self, Index)
  84. if Index:lower() == "create" then
  85. return function(Type)
  86. return function(Data)
  87. Data = Data or {}
  88. local Inst = Instance.new(Type)
  89. for x,y in pairs(Data) do
  90. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  91. if y == owner then y = InternalData.RealOwner end
  92. Inst[x] = y
  93. end
  94. return Inst
  95. end
  96. end
  97. end
  98. return InternalData.LoadLibrary(Library)[Index]
  99. end
  100. })
  101. end
  102. return InternalData.LoadLibrary(Library)
  103. end
  104. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  105. __index = function (self,Index)
  106. if Index:lower() == 'new' then
  107. return function (Type, Parent)
  108. if Parent == owner then Parent = InternalData.RealOwner end
  109. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  110. local Real = InternalData.RealInstance.new(Type,Parent)
  111. if not Type then return end
  112. if Type == "BillboardGui" then
  113. local ToReturn = setmetatable({},{
  114. __index = function (self,Index)
  115. if type(Real[Index]) == "function" then
  116. if Index:lower() == "clone" then
  117. return function (self)
  118. local Real = Real:Clone()
  119. local ToReturn = setmetatable({RealObject = Real},{
  120. __index = function (self,Index)
  121. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  122. return Real[Index]
  123. end;
  124. __newindex = function (self,Index,Value)
  125. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  126. if Value == owner then Value = InternalData.RealOwner end
  127. Real[Index] = Value
  128. end;
  129. __tostring = function(self) return tostring(Real) end;
  130. })
  131. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  132. end
  133. end
  134. return function (self,...) return Real[Index](Real,...)end
  135. end
  136. return Real[Index]
  137. end;
  138. __newindex = function (self,Index,Value)
  139. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  140. if Value == owner then Value = InternalData.RealOwner end
  141. Real[Index] = Value
  142. end;
  143. __tostring = function(self) return tostring(Real) end;
  144. })
  145. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  146. elseif Type:lower() == "sound" then
  147. Real.Parent = owner.Character;
  148. local ToReturn = setmetatable({RealObject = Real},{
  149. __index = function (self,Index)
  150. if Index:lower() == "playbackloudness" then
  151. return InternalData.SoundLoudness[Real] or 0
  152. elseif type(Real[Index]) == "function" then
  153. if Index:lower() == "clone" then
  154. return function (self)
  155. local Real = Real:Clone()
  156. local ToReturn = setmetatable({},{
  157. __index = function (self,Index)
  158. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  159. return Real[Index]
  160. end;
  161. __newindex = function (self,Index,Value)
  162. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  163. if Value == owner then Value = InternalData.RealOwner end
  164. Real[Index] = Value
  165. end;
  166. __tostring = function(self) return tostring(Real) end;
  167. })
  168. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  169. end
  170. end
  171. return function (self,...) return Real[Index](Real,...)end
  172. end
  173. return Real[Index]
  174. end;
  175. __newindex = function (self,Index,Value)
  176. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  177. if Value == owner then Value = InternalData.RealOwner end
  178. Real[Index] = Value
  179. end;
  180. __tostring = function(self) return tostring(Real) end;
  181. })
  182. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  183. else
  184. local ToReturn = setmetatable({RealObject = Real},{
  185. __index = function (self,Index)
  186. if type(Real[Index]) == "function" then
  187. if Index:lower() == "clone" then
  188. return function (self)
  189. local Real = Real:Clone()
  190. local ToReturn = setmetatable({},{
  191. __index = function (self,Index)
  192. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  193. return Real[Index]
  194. end;
  195. __newindex = function (self,Index,Value)
  196. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  197. if Value == owner then Value = InternalData.RealOwner end
  198. Real[Index] = Value
  199. end;
  200. __tostring = function(self) return tostring(Real) end;
  201. })
  202. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  203. end
  204. end
  205. return function (self,...) return Real[Index](Real,...)end
  206. end
  207. return Real[Index]
  208. end;
  209. __newindex = function (self,Index,Value)
  210. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  211. if Value == owner then Value = InternalData.RealOwner end
  212. Real[Index] = Value
  213. end;
  214. __tostring = function(self) return tostring(Real) end;
  215. })
  216. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  217. end
  218. end
  219. end
  220. return InternalData.RealInstance[Index]
  221. end;
  222. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  223. });
  224. InternalData.RealGame = game;game = setmetatable({},{
  225. __index = function (self,Index)
  226. if InternalData.RealGame[Index] then
  227. local Type = type(InternalData.RealGame[Index])
  228. if Type == "function" then
  229. if Index:lower() == "getservice" or Index:lower() == "service" then
  230. return function (self,Service)
  231. local FakeServices = {
  232. ["players"] = function()
  233. return setmetatable({},{
  234. __index = function (self2,Index2)
  235. local RealService = InternalData.RealGame:GetService(Service)
  236. local Type2 = type(RealService[Index2])
  237. if Type2 == "function" then
  238. return function (self,...) return RealService[Index2](RealService,...)end
  239. else
  240. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  241. return RealService[Index2]
  242. end
  243. end;
  244. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  245. })
  246. end;
  247. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  248. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  249. ["debris"] = function()
  250. return setmetatable({},{
  251. __index = function(self2,Index2)
  252. local RealService = InternalData.RealGame:GetService(Service)
  253. local Type2 = type(RealService[Index2])
  254. if Type2 == "function" then
  255. if Index2:lower() == "additem" then
  256. return function (self,Item,Time)
  257. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  258. return RealService:AddItem(Item,Time)
  259. end
  260. end
  261. return function (self,...) return RealService[Index2](RealService,...) end
  262. end
  263. return RealService[Index2]
  264. end;
  265. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  266. })
  267. end;
  268. ["runservice"] = function()
  269. return setmetatable({},{
  270. __index = function(self2,Index2)
  271. local RealService = InternalData.RealGame:GetService(Service)
  272. local Type2 = type(RealService[Index2])
  273. if Type2 == "function" then
  274. return function (self,...) return RealService[Index2](RealService,...) end
  275. else
  276. local RunServices = {
  277. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  278. ["renderstepped"] = function() return RealService["Stepped"] end
  279. }
  280. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  281. return RealService[Index2]
  282. end
  283. end;
  284. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  285. })
  286. end
  287. }
  288. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  289. return InternalData.RealGame:GetService(Service)
  290. end
  291. end
  292. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  293. else
  294. if game:GetService(Index) then return game:GetService(Index) end
  295. return InternalData.RealGame[Index]
  296. end
  297. end
  298. return nil
  299. end;
  300. __tostring = function(self) return tostring(InternalData.game) end
  301. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  302.  
  303. --//Paste script below this line.
  304. local plr = game:GetService("Players").LocalPlayer
  305. local char = plr.Character
  306. local tweenserv = game:GetService("TweenService")
  307. local hum = char:FindFirstChildOfClass("Humanoid")
  308. local mou = plr:GetMouse()
  309. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  310. local head = char:FindFirstChild("Head")
  311. local face = head:FindFirstChildOfClass("Decal")
  312. local neck = tor:FindFirstChild("Neck")
  313. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  314. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  315. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  316. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  317. local ls = tor:FindFirstChild("Left Shoulder")
  318. local rs = tor:FindFirstChild("Right Shoulder")
  319. local throwok = true
  320. local hitok = true
  321. local bullet = 1
  322. local equipped = false
  323. local canreload = true
  324. local startr = rs.C1
  325. local startl = ls.C1
  326. local freezed = false
  327. local clicked = false
  328.  
  329. local ball = Instance.new("Tool", plr.Backpack)
  330. ball.Name = "flare gun"
  331. ball.CanBeDropped = false
  332. local rhan = Instance.new("Part", ball)
  333. rhan.Size = Vector3.new(1, 1, 1)
  334. rhan.Name = "Handle"
  335. local mesh = Instance.new("SpecialMesh", rhan)
  336. mesh.MeshType = "FileMesh"
  337. mesh.Offset = Vector3.new(0, 0.2, -0.5)
  338. mesh.MeshId = "rbxassetid://443983595"
  339. mesh.TextureId = "rbxassetid://443983604"
  340. mesh.Scale = Vector3.new(0.015, 0.015, 0.015)
  341. local handle = Instance.new("Part", rhan)
  342. handle.Size = Vector3.new(0.6, 0.2, 0.2)
  343. handle.Shape = "Cylinder"
  344. handle.Material = "Plastic"
  345. handle.BrickColor = BrickColor.new("Bright green")
  346. handle.TopSurface = "Smooth"
  347. handle.BottomSurface = "Smooth"
  348. handle.CanCollide = false
  349. handle.Name = "Flare"
  350. local handlew = Instance.new("Weld", handle)
  351. handlew.Part0 = rhan
  352. handlew.Part1 = handle
  353. handlew.C1 = CFrame.new(0.8, -0.6, 0) * CFrame.Angles(0, math.rad(90), 0)
  354. local fire = true
  355.  
  356. local fremit = Instance.new("ParticleEmitter", handle)
  357. fremit.EmissionDirection = "Left"
  358. fremit.Enabled = false
  359. fremit.Rate = 500
  360. fremit.Speed = NumberRange.new(100)
  361. fremit.SpreadAngle = Vector2.new(10, 10)
  362. fremit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))})
  363. fremit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 10, 0)})
  364. fremit.Texture = "rbxassetid://688705835"
  365. fremit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 0)})
  366. fremit.LightEmission = 1
  367. fremit.LightInfluence = 1
  368. fremit.Lifetime = NumberRange.new(0.6)
  369.  
  370. ball.Activated:connect(function()
  371. if bullet == 1 then
  372. if throwok == true and fire == true then
  373. throwok = false
  374. bullet = 0
  375. local fakehandle = handle:Clone()
  376. fakehandle.Parent = workspace
  377. local fakew = fakehandle:FindFirstChildOfClass("Weld")
  378. fakew:Destroy()
  379. handle.Transparency = 1
  380. local emit = Instance.new("ParticleEmitter", fakehandle)
  381. emit.SpreadAngle = Vector2.new(360, 360)
  382. emit.Speed = NumberRange.new(0)
  383. emit.Lifetime = NumberRange.new(2)
  384. emit.Rate = 300
  385. emit.RotSpeed = NumberRange.new(100)
  386. emit.Texture = "rbxassetid://11601064"
  387. emit.LightEmission = 0.5
  388. emit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.701, 4.5, 0), NumberSequenceKeypoint.new(1, 0, 0)})
  389. emit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(0.453, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.632, Color3.fromRGB(38, 38, 38)), ColorSequenceKeypoint.new(1, Color3.fromRGB(35, 35, 35))})
  390. local bv = Instance.new("BodyVelocity", fakehandle)
  391. bv.Velocity = mou.Hit.lookVector * 60
  392. bv.MaxForce = Vector3.new(100, 100, 100)
  393. if not rhan:FindFirstChild("shasdasdasdasd") then
  394. local shsound = Instance.new("Sound", rhan)
  395. shsound.SoundId = "rbxassetid://130778558"
  396. shsound.Volume = 5
  397. shsound.Name = "shasdasdasdasd"
  398. shsound:Play()
  399. elseif rhan:FindFirstChild("shasdasdasdasd") then
  400. local shsound2 = rhan:FindFirstChild("shasdasdasdasd")
  401. shsound2:Play()
  402. end
  403. fakehandle.Touched:connect(function(hit)
  404. if hit:IsA("BasePart") and hit.Name ~= "Handle" and hit.Name ~= "Flare" and not hit:IsDescendantOf(char) then
  405. if hitok == true then
  406. hitok = false
  407. for i = 1,10 do
  408. local explo = fakehandle:Clone()
  409. explo.Shape = "Ball"
  410. explo.BrickColor = BrickColor.new("Crimson")
  411. explo.Material = "Neon"
  412. explo.Size = Vector3.new(0.4, 0.4, 0.4)
  413. explo.CFrame = fakehandle.CFrame
  414. explo.Parent = workspace
  415. explo:FindFirstChildOfClass("BodyVelocity").Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45))
  416. game:GetService("Debris"):AddItem(explo, 4)
  417. if not explo:FindFirstChild("aosuhaouthawouith") then
  418. local exploso = Instance.new("Sound", explo)
  419. exploso.SoundId = "rbxassetid://440145223"
  420. exploso.Volume = 5
  421. exploso.Name = "aosuhaouthawouith"
  422. exploso:Play()
  423. elseif explo:FindFirstChild("aosuhaouthawouith") then
  424. local exploso2 = explo:FindFirstChild("aosuhaouthawouith")
  425. exploso2:Play()
  426. end
  427. end
  428. fakehandle:Destroy()
  429. hitok = true
  430. if hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= char.Name then
  431. local owhum = hit.Parent:FindFirstChildOfClass("Humanoid")
  432. owhum.Health = owhum.health - 30
  433. fakehandle:Destroy()
  434. hitok = true
  435. for i,v in pairs(hit.Parent:GetChildren()) do
  436. if v:IsA("Part") then
  437. local burntemit = emit:Clone()
  438. burntemit.Parent = v
  439. burntemit.Lifetime = NumberRange.new(1)
  440. burntemit.Rate = 200
  441. end
  442. end
  443. for i = 1, 10 do
  444. owhum.Health = owhum.Health - 10
  445. wait(0.8)
  446. end
  447. end
  448. end
  449. end
  450. end)
  451. wait(1)
  452. throwok = true
  453. end
  454. elseif bullet == 0 and canreload == true and fire == true then
  455. if not rhan:FindFirstChild("asohaoiutrvhaoeitvh") then
  456. local clicso = Instance.new("Sound", rhan)
  457. clicso.SoundId = "rbxassetid://292201848"
  458. clicso.Volume = 5
  459. clicso.Name = "asohaoiutrvhaoeitvh"
  460. clicso:Play()
  461. elseif rhan:FindFirstChild("asohaoiutrvhaoeitvh") then
  462. local clicso2 = rhan:FindFirstChild("asohaoiutrvhaoeitvh")
  463. clicso2:Play()
  464. end
  465. end
  466. if throwok == true and fire == false then
  467. clicked = true
  468. fremit.Enabled = true
  469. sprsou = Instance.new("Sound", handle)
  470. sprsou.Volume = 10
  471. sprsou.SoundId = "rbxassetid://843338638"
  472. sprsou.Looped = true
  473. sprsou:Play()
  474. while clicked == true do
  475. wait()
  476. local thepos = handle.CFrame * CFrame.new(40, 0, 0)
  477. frehit = handle:Clone()
  478. frehit:ClearAllChildren()
  479. frehit.Parent = workspace
  480. frehit.Shape = "Cylinder"
  481. frehit.Material = "Plastic"
  482. frehit.Transparency = 1
  483. frehit.Size = Vector3.new(0.1, 9, 9)
  484. frehit.Name = "awirhaoriajv"
  485. frev = Instance.new("BodyVelocity", frehit)
  486. frev.Velocity = thepos.rightVector * -80
  487. frev.MaxForce = Vector3.new(10000, 10000, 10000)
  488. game:GetService("Debris"):AddItem(frehit, 0.7)
  489. frehit.Touched:connect(function(hit)
  490. if hit:IsA("BasePart") and not hit.Parent:FindFirstChildOfClass("Humanoid") and freezed == false and not hit:IsDescendantOf(char) and hit.Name ~= "awirhaoriajv" and hit.Name ~= "Base" and hit.Name ~= "Baseplate" then
  491. freezed = true
  492. hit.Material = "Ice"
  493. hit.Reflectance = 0.5
  494. hit.BrickColor = BrickColor.new("Pastel Blue")
  495. hit.Anchored = true
  496. wait(0.2)
  497. freezed = false
  498. elseif hit.Parent:FindFirstChildOfClass("Humanoid") and freezed == false and not hit:IsDescendantOf(char) then
  499. freezed = true
  500. local frechar = hit.Parent
  501. local fretor = frechar:FindFirstChild("Torso") or frechar:FindFirstChild("UpperTorso")
  502. local freice = Instance.new("Part", frechar)
  503. freice.CFrame = fretor.CFrame
  504. freice.BrickColor = BrickColor.new("Pastel Blue")
  505. freice.Reflectance = 0.5
  506. freice.Transparency = 0.4
  507. freice.Material = "Ice"
  508. freice.Anchored = true
  509. freice.Size = Vector3.new(4.5, 6, 3.5)
  510. freice.Name = "iceconesixtyseven"
  511. local fresou = Instance.new("Sound", freice)
  512. fresou.Volume = 5
  513. fresou.SoundId = "rbxassetid://268249319"
  514. fresou:Play()
  515. local frehum = frechar:FindFirstChildOfClass("Humanoid")
  516. frehum.Health = frehum.Health - 1
  517. for i,v in pairs(frechar:GetChildren()) do
  518. if v:isA("BasePart") then
  519. v.Anchored = true
  520. v.BrickColor = BrickColor.new("Pastel Blue")
  521. v.Reflectance = 0.5
  522. v.Material = "Ice"
  523. end
  524. end
  525. wait(0.2)
  526. freezed = false
  527. end
  528. end)
  529. end
  530. end
  531. end)
  532.  
  533. ball.Deactivated:connect(function()
  534. fremit.Enabled = false
  535. clicked = false
  536. if sprsou then
  537. sprsou:Stop()
  538. sprsou:Destroy()
  539. end
  540. if frehit then
  541. frehit:Destroy()
  542. end
  543. end)
  544.  
  545. ball.Equipped:connect(function()
  546. equipped = true
  547. end)
  548.  
  549. ball.Unequipped:connect(function()
  550. equipped = false
  551. end)
  552.  
  553. function pressed(key)
  554. if key == "r" and equipped == true and bullet == 0 and canreload == true and fire == true then
  555. canreload = false
  556. local finishr = startr * CFrame.Angles(math.rad(-45), 0, math.rad(45))
  557. local finishl = startl * CFrame.Angles(math.rad(-50), math.rad(30), math.rad(100))
  558. local finishl2 = startl * CFrame.Angles(math.rad(30), math.rad(60), 0)
  559. for i = 0,1,.1 do
  560. rs.C1 = startr:lerp(finishr, i)
  561. ls.C1 = startl:lerp(finishl, i)
  562. wait()
  563. end
  564. for i = 0,1,.1 do
  565. ls.C1 = finishl:lerp(finishl2, i)
  566. wait()
  567. end
  568. local relso = Instance.new("Sound", rhan)
  569. relso.SoundId = "rbxassetid://506273075"
  570. relso.Volume = 5
  571. relso:Play()
  572. game:GetService("Debris"):AddItem(relso, 1.5)
  573. for i = 0,1,.1 do
  574. ls.C1 = ls.C1:lerp(startl, i)
  575. rs.C1 = rs.C1:lerp(startr, i)
  576. wait()
  577. end
  578. bullet = 1
  579. handle.Transparency = 0
  580. canreload = true
  581. elseif key == "q" and equipped == true and fire == false then
  582. fire = true
  583. mesh.TextureId = "rbxassetid://443983604"
  584. elseif key == "q" and equipped == true and fire == true then
  585. fire = false
  586. mesh.TextureId = "rbxassetid://1578721503"
  587. elseif key == "p" then
  588. if tor:FindFirstChildOfClass("Sound") and tor:FindFirstChild("asdddddd") then
  589. local hi = tor:FindFirstChild("asdddddd")
  590. hi:Destroy()
  591. end
  592. if not tor:FindFirstChild("yasdawoirhtvoaeityu") then
  593. local yes = Instance.new("Sound", tor)
  594. yes.SoundId = "rbxassetid://141349049"
  595. yes.Volume = 10
  596. yes.Name = "yasdawoirhtvoaeityu"
  597. yes:Play()
  598. elseif tor:FindFirstChild("yasdawoirhtvoaeityu") then
  599. local yes2 = tor:FindFirstChild("yasdawoirhtvoaeityu")
  600. yes2:Play()
  601. end
  602. end
  603. end
  604.  
  605. mou.KeyDown:connect(pressed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement