Advertisement
Josemmoya

Untitled

Feb 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.45 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 & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  2. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  3. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  4. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  5. Wrapper.CreateObject = function(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. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  17. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  18. Wrapper.Sandbox = function(...)
  19. local Unwrap = {...};
  20. for obi = 1,#Unwrap do
  21. local Object = Unwrap[obi];
  22. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  23. local Type = typeof(Object);local Replacement = Object;
  24. if (Type == "function") then
  25. Replacement = function(...)
  26. local IsRoblox = not (pcall(function() string.dump(Object) end))
  27. if IsRoblox then
  28. return Object(Wrapper.Unsandbox(...))
  29. end
  30. return Object(Wrapper.Sandbox(...))
  31. end
  32. elseif (Type == "table") then
  33. Replacement = {};
  34. setmetatable(Replacement, {
  35. __index = function(self, i)
  36. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  37. end,
  38. __newindex = function(self,i,v)
  39. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  40. end;
  41. })
  42. elseif (Type == "Instance") then
  43. Replacement = newproxy(true);
  44. local Mt = getmetatable(Replacement);
  45. Mt.__namecall = function(self, ...)
  46. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  47. local Rest = nil;pcall(function()Rest = Object[Name];end);
  48. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  49. if (Object:IsA(g) or g == "Global") then
  50. for t, v in pairs(x) do
  51. for str in string.gmatch(t .. ",", "(%w+),") do
  52. if (Name == str) then
  53. if typeof(v) == "function" then
  54. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  55. else
  56. return v;
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end
  63. if (Rest == nil) then
  64. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  65. return Wrapper.Sandbox(Object[Name]);
  66. elseif (typeof(Rest) == "function") then
  67. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  68. end
  69. return Wrapper.Sandbox(Object[Name]);
  70. end
  71. Mt.__index = function(self, i)
  72. local Rest = nil;pcall(function()Rest = Object[i];end)
  73. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  74. if (Object:IsA(g) or g == "Global") then
  75. for t, v in pairs(x) do
  76. for str in string.gmatch(t .. ",", "(%w+),") do
  77. if (i == str) then
  78. if typeof(v) == "function" then
  79. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  80. else
  81. return v;
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  89. if (Rest == nil) then
  90. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  91. return Wrapper.Sandbox(Object[i]);
  92. elseif (typeof(Rest) == "function") then
  93. local isService,Service = pcall(function() return sGame:GetService(i) end)
  94. if isService and Service then return Wrapper.Sandbox(Service) end
  95. return function(self, ...)
  96. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  97. end
  98. end
  99. return Wrapper.Sandbox(Object[i]);
  100. end
  101. Mt.__newindex = function(self, i, v)
  102. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  103. if (Object:IsA(g)) then
  104. for t, v in pairs(x) do
  105. for str in string.gmatch( t .. ",", "(%w+),") do
  106. if v(Wrapper.Unsandbox(self, i, v)) == true then
  107. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  108. end
  109. end
  110. end
  111. end
  112. end
  113. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  114. end
  115. Mt.__tostring = function(self) return tostring(Object) end
  116. --elseif (Type == "") then -- Etc
  117. end
  118. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  119. else
  120. return Wrapper.Fake[Object] or Object;
  121. end
  122. end
  123. return unpack(Unwrap);
  124. end
  125. Wrapper.Unsandbox = function(...)
  126. local Unsandbox = {...};
  127. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  128. return unpack(Unsandbox)
  129. end
  130. Wrapper.Services = {
  131. ['contextactionservice'] = Wrapper.ContextActionService;
  132. ["userinputservice"] = Wrapper.UserInputService;
  133. }
  134. Wrapper.InstanceMT = {
  135. ["GET"] = {
  136. ["Global"] = {
  137. ["IsFake,isFake"] = function(self)return true;end;
  138. };
  139. ["Player"] = {
  140. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  141. };
  142. ["Players"] = {
  143. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  144. };
  145. ["DataModel"] = {
  146. ["getService,GetService"] = function(self,service)
  147. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  148. return Wrapper.Sandbox(sGame:GetService(service))
  149. end
  150. };
  151. ["RunService"] = {
  152. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  153. }
  154. };
  155. ["SET"] = {
  156. }
  157. }
  158. Wrapper.SoundLoudness = {};
  159. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  160. if FiredBy ~= sOwner then return end
  161. if Input.MouseEvent then
  162. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  163. elseif Input.Sound then
  164. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  165. else
  166. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  167. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  168. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  169. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  170. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  171. end
  172. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  173. end
  174. end);
  175. Wrapper.Event.Parent = NLS([[
  176. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  177. local Input = function(Input,gameProcessedEvent)
  178. if gameProcessedEvent then return end;
  179. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  180. end
  181. Event.OnClientEvent:connect(function(Args)
  182. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  183. end)
  184. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  185. local Hit,Target;while wait(1/30) do
  186. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  187. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  188. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  189. end
  190. end]],sOwner.Character)
  191. Instance = {
  192. ["new"] = function(Type,Parent)
  193. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  194. if Type:lower() == "sound" then
  195. if not Parent then
  196. Parent = sOwner.Character
  197. end
  198. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  199. end
  200. return Wrapper.Sandbox(Real)
  201. end
  202. }
  203. LoadLibrary = function(Library)
  204. if Library == "RbxUtility" then
  205. return setmetatable({},{
  206. __tostring = function() return "RbxUtility" end;
  207. __index = function(self, Index)
  208. if Index:lower() == "create" then
  209. return function(Type) return function(Data)
  210. Data = Data or {};local Inst = Instance.new(Type)
  211. for x,y in pairs(Data) do Inst[x] = y end
  212. return Inst
  213. end;end;
  214. end
  215. return sLoadLibrary(Library)[Index]
  216. end})
  217. end
  218. return sLoadLibrary(Library)
  219. end
  220. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  221. Game= game;Workspace = workspace;
  222.  
  223. --//Paste script below this line.
  224. --[[Salvo_Starly[Salvy].Thingy_2018.8]]--
  225. --[[Project Name: R.U.N]]--
  226. wait(.2)
  227. plr=game.Players.LocalPlayer
  228. chr=plr.Character
  229. Head=chr.Head
  230. Root=chr.HumanoidRootPart
  231. Torso=chr.Torso
  232. RArm=chr["Right Arm"]
  233. LArm=chr["Left Arm"]
  234. RLeg=chr["Right Leg"]
  235. LLeg=chr["Left Leg"]
  236. RJ=Root.RootJoint
  237. Neck=Torso.Neck
  238. LS=Torso["Left Shoulder"]
  239. LH=Torso["Left Hip"]
  240. RS=Torso["Right Shoulder"]
  241. RH=Torso["Right Hip"]
  242. hum=chr:FindFirstChildOfClass("Humanoid")
  243. mouse=plr:GetMouse()
  244. died=false
  245. EatTime=110
  246. Siz=8
  247. BallMass=15000
  248. SSpeed=1.5
  249. Grow=8
  250. MinGrow=3.5
  251. MaxGrow=8
  252. GlV=25000
  253.  
  254. create=LoadLibrary("RbxUtility").Create
  255.  
  256. chr.Animate:Remove()
  257. hum.Animator:Remove()
  258.  
  259. function clerp(a,b,t)
  260. return a:lerp(b,t)
  261. end
  262.  
  263. local newMotor=function(name,p0,p1,c0,c1)
  264. local w=Instance.new('Motor',p0)
  265. w.Name=name
  266. w.Part0=p0
  267. w.Part1=p1
  268. w.C0=c0
  269. w.C1=c1
  270. return w
  271. end
  272. for _,c in pairs(Torso:children()) do
  273. if c:IsA("Motor") and c.Name~="Neck" then
  274. c:Remove()
  275. end
  276. end
  277.  
  278.  
  279. RJ.C0,RJ.C1=CFrame.new(0,0,0),CFrame.new(0,0,0)
  280. Neck.C0,Neck.C1=CFrame.new(0,1.5,0),CFrame.new(0,0,0)
  281. --[[RS.C0,RS.C1=CFrame.new(1.5,0,0),CFrame.new(0,0,0)
  282. LS.C0,LS.C1=CFrame.new(-1.5,0,0),CFrame.new(0,0,0)
  283. RH.C0,RH.C1=CFrame.new(.5,-2,0),CFrame.new(0,0,0)
  284. LH.C0,LH.C1=CFrame.new(-.5,-2,0),CFrame.new(0,0,0)]]
  285. local RS=newMotor("Right Shoulder",Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  286. local LS=newMotor("Left Shoulder",Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  287. local RH=newMotor("Right Hip",Torso, RLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  288. local LH=newMotor("Left Hip",Torso, LLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  289.  
  290. function NoOutline(Part)
  291. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface=10,10,10,10,10,10
  292. end
  293.  
  294. function rayCast(Position,Direction,Range,Ignore)
  295. return game:service("Workspace"):FindPartOnRay(Ray.new(Position,Direction.unit*(Range or 999.999)),Ignore)
  296. end
  297.  
  298. ArtificialHB=create("BindableEvent"){
  299. Parent=script,
  300. Name="Heartbeat"}
  301.  
  302. script:WaitForChild("Heartbeat")
  303.  
  304. frame=0.0166666666666666667
  305. tf=0
  306. allowframeloss=false
  307. tossremainder=false
  308. lastframe=tick()
  309. script.Heartbeat:Fire()
  310.  
  311. game:GetService("RunService").Heartbeat:connect(function(s,p)
  312. tf=tf+s
  313. if tf >=frame then
  314. if allowframeloss then
  315. script.Heartbeat:Fire()
  316. lastframe=tick()
  317. else
  318. for i=1,math.floor(tf/frame) do
  319. script.Heartbeat:Fire()
  320. end
  321. lastframe=tick()
  322. end
  323. if tossremainder then
  324. tf=0
  325. else
  326. tf=tf-frame*math.floor(tf/frame)
  327. end
  328. end
  329. end)
  330.  
  331. function swait(num)
  332. if num==0 or num==nil then
  333. ArtificialHB.Event:wait()
  334. else
  335. for i=0,num do
  336. ArtificialHB.Event:wait()
  337. end
  338. end
  339. end
  340.  
  341. function parts(Par,name,size,color,mat,ref,tra)
  342. local part=create("Part"){
  343. Parent=Par,
  344. Name=name,
  345. Size=size,
  346. CanCollide=false,
  347. Anchored=false,
  348. BrickColor=BrickColor.new(color),
  349. Material=mat,
  350. Reflectance=ref,
  351. Transparency=tra}
  352. --Position=Torso.Position}
  353. NoOutline(part)
  354. part:BreakJoints()
  355. return part
  356. end
  357.  
  358. function meshs(Par,name,scale,mtype,id)
  359. local mesh=create("SpecialMesh"){
  360. Parent=Par,
  361. Name=name,
  362. Scale=scale,
  363. MeshType=mtype}
  364. if id~="" then
  365. mesh.MeshId="rbxassetid://"..id
  366. end
  367. return mesh
  368. end
  369.  
  370. function welds(Par,name,p0,p1,c0,c1)
  371. local weld=create("Weld"){
  372. Parent=Par,
  373. Name=name,
  374. Part0=p0,
  375. Part1=p1,
  376. C0=c0,
  377. C1=c1}
  378. return weld
  379. end
  380.  
  381. function sounds(Par,id,vol,pit)
  382. local sound=create("Sound"){
  383. Parent=Par,
  384. SoundId="rbxassetid://"..id,
  385. Volume=vol,
  386. PlaybackSpeed=pit,
  387. MaxDistance=66666666}
  388. sound:Play()
  389. game:GetService("Debris"):AddItem(sound,10)
  390. return sound
  391. end
  392.  
  393. for _,v in pairs(chr:children()) do
  394. if v:IsA("BasePart")then
  395. v.Transparency=1
  396. elseif v:IsA("Accessory")then
  397. v.Handle.Transparency=1
  398. end
  399. end
  400.  
  401. if Head:findFirstChild("face").Parent~=nil then
  402. Head:findFirstChild("face").Transparency=1
  403. end
  404.  
  405. Infections={}
  406.  
  407. --extremely lazy to use parts()
  408. i=create("Part"){
  409. Parent=chr,
  410. Color=Color3.new(math.random(0,1),math.random(0, 1),math.random(0, 1)),
  411. Locked=true,
  412. CFrame=Root.CFrame,
  413. Shape=0,
  414. Size=Vector3.new(8,8,8),
  415. Transparency=0.3,
  416. }
  417. NoOutline(i)
  418.  
  419. Force=create("BodyForce"){
  420. Parent=i}
  421.  
  422. Vepz=create("BodyVelocity"){
  423. maxForce=Vector3.new(math.huge,0,math.huge),
  424. P=10,
  425. velocity=Vector3.new(0,0,0)}
  426.  
  427. Hin=create("Hint"){
  428. Parent=workspace,
  429. Text="Survive and kill the bawlz for win!"
  430. }
  431.  
  432.  
  433. iw=welds(i,"MainWeld",Root,i,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  434.  
  435.  
  436. sounds(chr,"2767085",1,1)
  437.  
  438.  
  439. MainGui=create("ScreenGui"){
  440. Name="RUNGui",
  441. Parent=plr.PlayerGui,
  442. DisplayOrder=5
  443. }
  444.  
  445. SizeLabel=create("TextLabel"){
  446. Parent=MainGui,
  447. AnchorPoint=Vector2.new(.5,.5),
  448. Position=UDim2.new(.5,0,.8,0),
  449. Size=UDim2.new(.06,0,.08,0),
  450. ZIndex=1,
  451. Text="Bawlz Size:",
  452. BackgroundColor3=BrickColor.new("Navy blue").Color,
  453. TextColor3=i.BrickColor.Color,
  454. BorderColor3=i.BrickColor.Color,
  455. Font="SourceSans",
  456. TextSize=18,
  457. --TextScaled=true,
  458. TextYAlignment="Top"
  459. }
  460.  
  461. SizeN=create("TextLabel"){
  462. Parent=SizeLabel,
  463. AnchorPoint=Vector2.new(.5,.5),
  464. Position=UDim2.new(.5,0,.5,0),
  465. Size=UDim2.new(1,0,1,0),
  466. ZIndex=2,
  467. Text=Grow,
  468. BackgroundTransparency=1,
  469. TextColor3=i.BrickColor.Color,
  470. Font="SourceSans",
  471. TextSize=18,
  472. --TextScaled=true,
  473. TextYAlignment="Bottom"
  474. }
  475.  
  476. MSizeN=create("TextLabel"){
  477. Parent=SizeLabel,
  478. AnchorPoint=Vector2.new(.5,.5),
  479. Position=UDim2.new(.5,0,1,0),
  480. Size=UDim2.new(1,0,1,0),
  481. ZIndex=2,
  482. Text="Max Size: "..MaxGrow,
  483. BackgroundTransparency=1,
  484. TextColor3=i.BrickColor.Color,
  485. Font="SourceSans",
  486. TextSize=18,
  487. --TextScaled=true,
  488. TextYAlignment="Bottom"
  489. }
  490.  
  491. Infections[i]=true
  492.  
  493. local s=create("Sound"){
  494. SoundId="rbxassetid://10722059",
  495. Volume=1,
  496. Parent=Root}
  497.  
  498.  
  499. function Join(Part0, Part1)
  500. local Connector=create("Weld"){
  501. C0=Part0.CFrame:inverse(),
  502. C1=Part1.CFrame:inverse(),
  503. Part0=Part0,
  504. Part1=Part1,
  505. Parent=Part0}
  506. coroutine.resume(coroutine.create(function()
  507. while Part1.Parent~=nil do
  508. swait()
  509. Connector.Parent=Part0
  510. Connector.Part0=Part0
  511. Connector.Part1=Part1
  512. end
  513. Connector:Remove()
  514. end))
  515. return Connector
  516. end
  517.  
  518. function Eat(part,ir,s)
  519. part.CanCollide=false
  520. part.Anchored=true
  521. while (part.Position-ir.Position).magnitude>Siz/3 do
  522. part.CanCollide=false
  523. part:BreakJoints()
  524. local c={part.CFrame:components()}
  525. local v=part.Position+CFrame.new(part.Position,ir.Position).lookVector*SSpeed
  526. c[1]=v.X
  527. c[2]=v.Y
  528. c[3]=v.Z
  529. part.CFrame=CFrame.new(unpack(c))
  530. swait()
  531. end
  532. s:Play()
  533. local p=Join(ir,part)
  534. part.Anchored=false
  535. swait(EatTime)
  536. if MaxGrow<30 then
  537. MaxGrow=MaxGrow+.5
  538. else
  539. MaxGrow=30
  540. end
  541. if part.Parent~=nil then
  542. part:Remove()
  543. end
  544. end
  545.  
  546. --Hit:IsDescendantOf
  547.  
  548. i.Touched:connect(function(Hit)
  549. if not died then
  550. if Hit:GetMass()<BallMass and not Infections[Hit] and not string.match(Hit.Name,"Base") and Hit.Parent.Name~=plr.Name and Hit.Parent.Parent.Name~=plr.Name then
  551. Infections[Hit]=true
  552. Eat(Hit,i,s)
  553. end
  554. end
  555. end)
  556.  
  557. mov=false
  558. mouse.Button1Down:connect(function()
  559. if not died then
  560. mov=true
  561. coroutine.resume(coroutine.create(function()
  562. while mov do
  563. swait()
  564. if i and Force then
  565. local force=(CFrame.new(i.Position,mouse.Hit.p).lookVector*GlV)
  566. i.BodyForce.force = Vector3.new(force.x,0,force.z)
  567. else
  568. Force=create("BodyForce"){
  569. Parent=i}
  570. end
  571. end
  572. if Force then
  573. Force.force=Vector3.new(0, 0, 0)
  574. end
  575. end))
  576. end
  577. end)
  578.  
  579. mouse.Button1Up:connect(function()
  580. mov=false
  581. end)
  582.  
  583. mouse.KeyDown:connect(function(k)
  584. k=k:lower()
  585. --stop
  586. if k=="q" and Vepz.Parent==nil then
  587. Vepz.Parent=i
  588. end
  589. --jump
  590. if not died then
  591. if k=="f" then
  592. local Veps=create("BodyVelocity"){
  593. maxForce=Vector3.new(0,math.huge,0),
  594. P=10,
  595. velocity=Vector3.new(0,100,0),
  596. Parent=i}
  597. game:GetService("Debris"):AddItem(Veps,.1)
  598. end
  599. --taunt
  600. if k=="t" then
  601. sounds(Root,"13378571",1,.5)
  602. end
  603. --change size
  604. if not mov then
  605. if k=="z" then
  606. if Grow<MaxGrow then
  607. Grow=Grow+.5
  608. GlV=GlV+2500
  609. else
  610. Grow=MaxGrow
  611. end
  612. elseif k=="x" then
  613. if Grow>MinGrow then
  614. Grow=Grow-.5
  615. GlV=GlV-2500
  616. else
  617. Grow=MinGrow
  618. end
  619. end
  620. --renew
  621. if k=="r" then
  622. i:Remove()
  623. end
  624. end
  625. end
  626. end)
  627.  
  628. mouse.KeyUp:connect(function(k)
  629. k=k:lower()
  630. if k=="q" and Vepz.Parent~=nil then
  631. Vepz.Parent=nil
  632. end
  633. end)
  634.  
  635. hum.Died:connect(function()
  636. died=true
  637. workspace.CurrentCamera.CameraSubject=hum
  638. game:GetService("Debris"):AddItem(Hin,.2)
  639. sounds(chr,"15632562",1,1.2)
  640. local info=TweenInfo.new(3,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out,0,false)
  641. local tween=game:GetService("TweenService"):Create(i,info,{Size=Vector3.new(18,18,18)})
  642. tween:Play()
  643. i.Anchored=true
  644. for _,v in pairs(chr:children()) do
  645. if v:IsA("BasePart")then
  646. v.Anchored=true
  647. elseif v:IsA("Accessory")then
  648. v.Handle.Anchored=true
  649. end
  650. end
  651. local Hint=create("Hint"){
  652. Parent=workspace,
  653. Text="All bawlz died!"
  654. }
  655. coroutine.resume(coroutine.create(function()
  656. swait(170)
  657. sounds(chr,"13114759",1,0.7)
  658. Hint.Text="Game over!"
  659. end))
  660. game:GetService("Debris"):AddItem(Hint,5)
  661. for si=0,1,.005 do
  662. swait()
  663. i.Transparency=si
  664. end
  665. --chr:Remove()
  666. for _,v in pairs(chr:children()) do
  667. if v.ClassName~="Sound" then
  668. v:Remove()
  669. end
  670. end
  671. end)
  672.  
  673.  
  674.  
  675. while not died do
  676. swait()
  677. if Hin.Parent==nil then
  678. Hin=create("Hint"){
  679. Parent=workspace,
  680. Text="Survive and kill the bawlz for win!"}
  681. end
  682.  
  683. if i.Parent==nil then
  684. i=create("Part"){
  685. Parent=chr,
  686. Color=Color3.new(math.random(0,1),math.random(0, 1),math.random(0, 1)),
  687. Locked=true,
  688. CFrame=Root.CFrame,
  689. Shape=0,
  690. Size=Vector3.new(8,8,8),
  691. Transparency=0.3,
  692. }
  693. NoOutline(i)
  694.  
  695. Force=create("BodyForce"){
  696. Parent=i}
  697.  
  698. Vepz=create("BodyVelocity"){
  699. maxForce=Vector3.new(math.huge,0,math.huge),
  700. P=10,
  701. velocity=Vector3.new(0,0,0)}
  702.  
  703. i.Touched:connect(function(Hit)
  704. if not died then
  705. if Hit:GetMass()<BallMass and not Infections[Hit] and not string.match(Hit.Name,"Base") and Hit.Parent.Name~=plr.Name and Hit.Parent.Parent.Name~=plr.Name then
  706. Infections[Hit]=true
  707. Eat(Hit,i,s)
  708. end
  709. end
  710. end)
  711.  
  712. end
  713. i.Size=Vector3.new(Grow,Grow,Grow)
  714. iw.Parent=i
  715. iw.Part0=Root
  716. iw.Part1=i
  717. iw.C0=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  718. iw.C1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  719.  
  720. SizeN.Text=Grow
  721. MSizeN.Text="Max Size: "..MaxGrow
  722.  
  723. workspace.CurrentCamera.CameraSubject=i
  724. hum.PlatformStand=true
  725. Neck.C0=clerp(Neck.C0,CFrame.new(0,0,0),.4)
  726. RS.C0=clerp(RS.C0,CFrame.new(0,0,0),.4)
  727. LS.C0=clerp(LS.C0,CFrame.new(0,0,0),.4)
  728. RH.C0=clerp(RH.C0,CFrame.new(0,0,0),.4)
  729. LH.C0=clerp(LH.C0,CFrame.new(0,0,0),.4)
  730. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement