Advertisement
AnormalPerson

B

Feb 16th, 2020
1,874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do print("FE Compatibility code V3 by Desered_ROBLOX")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8. --[[Salvo_Starly[Salvy].Thingy_2018.8]]--
  9. --[[Project Name: R.U.N]]--
  10. wait(.2)
  11. plr=game.Players.LocalPlayer
  12. chr=plr.Character
  13. Head=chr.Head
  14. Root=chr.HumanoidRootPart
  15. Torso=chr.Torso
  16. RArm=chr["Right Arm"]
  17. LArm=chr["Left Arm"]
  18. RLeg=chr["Right Leg"]
  19. LLeg=chr["Left Leg"]
  20. RJ=Root.RootJoint
  21. Neck=Torso.Neck
  22. LS=Torso["Left Shoulder"]
  23. LH=Torso["Left Hip"]
  24. RS=Torso["Right Shoulder"]
  25. RH=Torso["Right Hip"]
  26. hum=chr:FindFirstChildOfClass("Humanoid")
  27. mouse=plr:GetMouse()
  28. died=false
  29. EatTime=110
  30. Siz=8
  31. BallMass=15000
  32. SSpeed=1.5
  33. Grow=8
  34. MinGrow=3.5
  35. MaxGrow=8
  36. GlV=25000
  37.  
  38. create=LoadLibrary("RbxUtility").Create
  39.  
  40. chr.Animate:Remove()
  41. hum.Animator:Remove()
  42.  
  43. function clerp(a,b,t)
  44. return a:lerp(b,t)
  45. end
  46.  
  47. local newMotor=function(name,p0,p1,c0,c1)
  48. local w=Instance.new('Motor',p0)
  49. w.Name=name
  50. w.Part0=p0
  51. w.Part1=p1
  52. w.C0=c0
  53. w.C1=c1
  54. return w
  55. end
  56. for _,c in pairs(Torso:children()) do
  57. if c:IsA("Motor") and c.Name~="Neck" then
  58. c:Remove()
  59. end
  60. end
  61.  
  62.  
  63. RJ.C0,RJ.C1=CFrame.new(0,0,0),CFrame.new(0,0,0)
  64. Neck.C0,Neck.C1=CFrame.new(0,1.5,0),CFrame.new(0,0,0)
  65. --[[RS.C0,RS.C1=CFrame.new(1.5,0,0),CFrame.new(0,0,0)
  66. LS.C0,LS.C1=CFrame.new(-1.5,0,0),CFrame.new(0,0,0)
  67. RH.C0,RH.C1=CFrame.new(.5,-2,0),CFrame.new(0,0,0)
  68. LH.C0,LH.C1=CFrame.new(-.5,-2,0),CFrame.new(0,0,0)]]
  69. local RS=newMotor("Right Shoulder",Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  70. local LS=newMotor("Left Shoulder",Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  71. local RH=newMotor("Right Hip",Torso, RLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  72. local LH=newMotor("Left Hip",Torso, LLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  73.  
  74. function NoOutline(Part)
  75. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface=10,10,10,10,10,10
  76. end
  77.  
  78. function rayCast(Position,Direction,Range,Ignore)
  79. return game:service("Workspace"):FindPartOnRay(Ray.new(Position,Direction.unit*(Range or 999.999)),Ignore)
  80. end
  81.  
  82. ArtificialHB=create("BindableEvent"){
  83. Parent=script,
  84. Name="Heartbeat"}
  85.  
  86. script:WaitForChild("Heartbeat")
  87.  
  88. frame=0.0166666666666666667
  89. tf=0
  90. allowframeloss=false
  91. tossremainder=false
  92. lastframe=tick()
  93. script.Heartbeat:Fire()
  94.  
  95. game:GetService("RunService").Heartbeat:connect(function(s,p)
  96. tf=tf+s
  97. if tf >=frame then
  98. if allowframeloss then
  99. script.Heartbeat:Fire()
  100. lastframe=tick()
  101. else
  102. for i=1,math.floor(tf/frame) do
  103. script.Heartbeat:Fire()
  104. end
  105. lastframe=tick()
  106. end
  107. if tossremainder then
  108. tf=0
  109. else
  110. tf=tf-frame*math.floor(tf/frame)
  111. end
  112. end
  113. end)
  114.  
  115. function swait(num)
  116. if num==0 or num==nil then
  117. ArtificialHB.Event:wait()
  118. else
  119. for i=0,num do
  120. ArtificialHB.Event:wait()
  121. end
  122. end
  123. end
  124.  
  125. function parts(Par,name,size,color,mat,ref,tra)
  126. local part=create("Part"){
  127. Parent=Par,
  128. Name=name,
  129. Size=size,
  130. CanCollide=false,
  131. Anchored=false,
  132. BrickColor=BrickColor.new(color),
  133. Material=mat,
  134. Reflectance=ref,
  135. Transparency=tra}
  136. --Position=Torso.Position}
  137. NoOutline(part)
  138. part:BreakJoints()
  139. return part
  140. end
  141.  
  142. function meshs(Par,name,scale,mtype,id)
  143. local mesh=create("SpecialMesh"){
  144. Parent=Par,
  145. Name=name,
  146. Scale=scale,
  147. MeshType=mtype}
  148. if id~="" then
  149. mesh.MeshId="rbxassetid://"..id
  150. end
  151. return mesh
  152. end
  153.  
  154. function welds(Par,name,p0,p1,c0,c1)
  155. local weld=create("Weld"){
  156. Parent=Par,
  157. Name=name,
  158. Part0=p0,
  159. Part1=p1,
  160. C0=c0,
  161. C1=c1}
  162. return weld
  163. end
  164.  
  165. function sounds(Par,id,vol,pit)
  166. local sound=create("Sound"){
  167. Parent=Par,
  168. SoundId="rbxassetid://"..id,
  169. Volume=vol,
  170. PlaybackSpeed=pit,
  171. MaxDistance=66666666}
  172. sound:Play()
  173. game:GetService("Debris"):AddItem(sound,10)
  174. return sound
  175. end
  176.  
  177. for _,v in pairs(chr:children()) do
  178. if v:IsA("BasePart")then
  179. v.Transparency=1
  180. elseif v:IsA("Accessory")then
  181. v.Handle.Transparency=1
  182. end
  183. end
  184.  
  185. if Head:findFirstChild("face").Parent~=nil then
  186. Head:findFirstChild("face").Transparency=1
  187. end
  188.  
  189. Infections={}
  190.  
  191. --extremely lazy to use parts()
  192. i=create("Part"){
  193. Parent=chr,
  194. Color=Color3.new(math.random(0,1),math.random(0, 1),math.random(0, 1)),
  195. Locked=true,
  196. CFrame=Root.CFrame,
  197. Shape=0,
  198. Size=Vector3.new(8,8,8),
  199. Transparency=0.3,
  200. }
  201. NoOutline(i)
  202.  
  203. Force=create("BodyForce"){
  204. Parent=i}
  205.  
  206. Vepz=create("BodyVelocity"){
  207. maxForce=Vector3.new(math.huge,0,math.huge),
  208. P=10,
  209. velocity=Vector3.new(0,0,0)}
  210.  
  211. Hin=create("Hint"){
  212. Parent=workspace,
  213. Text="Survive and kill the bawlz for win!"
  214. }
  215.  
  216.  
  217. 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))
  218.  
  219.  
  220. sounds(chr,"2767085",1,1.5)
  221.  
  222.  
  223. MainGui=create("ScreenGui"){
  224. Name="RUNGui",
  225. Parent=plr.PlayerGui,
  226. DisplayOrder=5
  227. }
  228.  
  229. SizeLabel=create("TextLabel"){
  230. Parent=MainGui,
  231. AnchorPoint=Vector2.new(.5,.5),
  232. Position=UDim2.new(.5,0,.8,0),
  233. Size=UDim2.new(.06,0,.08,0),
  234. ZIndex=1,
  235. Text="Bawlz Size:",
  236. BackgroundColor3=BrickColor.new("Navy blue").Color,
  237. TextColor3=i.BrickColor.Color,
  238. BorderColor3=i.BrickColor.Color,
  239. Font="SourceSans",
  240. TextSize=18,
  241. --TextScaled=true,
  242. TextYAlignment="Top"
  243. }
  244.  
  245. SizeN=create("TextLabel"){
  246. Parent=SizeLabel,
  247. AnchorPoint=Vector2.new(.5,.5),
  248. Position=UDim2.new(.5,0,.5,0),
  249. Size=UDim2.new(1,0,1,0),
  250. ZIndex=2,
  251. Text=Grow,
  252. BackgroundTransparency=1,
  253. TextColor3=i.BrickColor.Color,
  254. Font="SourceSans",
  255. TextSize=18,
  256. --TextScaled=true,
  257. TextYAlignment="Bottom"
  258. }
  259.  
  260. MSizeN=create("TextLabel"){
  261. Parent=SizeLabel,
  262. AnchorPoint=Vector2.new(.5,.5),
  263. Position=UDim2.new(.5,0,1,0),
  264. Size=UDim2.new(1,0,1,0),
  265. ZIndex=2,
  266. Text="Max Size: "..MaxGrow,
  267. BackgroundTransparency=1,
  268. TextColor3=i.BrickColor.Color,
  269. Font="SourceSans",
  270. TextSize=18,
  271. --TextScaled=true,
  272. TextYAlignment="Bottom"
  273. }
  274.  
  275. Infections[i]=true
  276.  
  277. local s=create("Sound"){
  278. SoundId="rbxassetid://10722059",
  279. Volume=1,
  280. Parent=Root}
  281.  
  282.  
  283. function Join(Part0, Part1)
  284. local Connector=create("Weld"){
  285. C0=Part0.CFrame:inverse(),
  286. C1=Part1.CFrame:inverse(),
  287. Part0=Part0,
  288. Part1=Part1,
  289. Parent=Part0}
  290. coroutine.resume(coroutine.create(function()
  291. while Part1.Parent~=nil do
  292. swait()
  293. Connector.Parent=Part0
  294. Connector.Part0=Part0
  295. Connector.Part1=Part1
  296. end
  297. Connector:Remove()
  298. end))
  299. return Connector
  300. end
  301.  
  302. function Eat(part,ir,s)
  303. part.CanCollide=false
  304. part.Anchored=true
  305. while (part.Position-ir.Position).magnitude>Siz/3 do
  306. part.CanCollide=false
  307. part:BreakJoints()
  308. local c={part.CFrame:components()}
  309. local v=part.Position+CFrame.new(part.Position,ir.Position).lookVector*SSpeed
  310. c[1]=v.X
  311. c[2]=v.Y
  312. c[3]=v.Z
  313. part.CFrame=CFrame.new(unpack(c))
  314. swait()
  315. end
  316. s:Play()
  317. local p=Join(ir,part)
  318. part.Anchored=false
  319. swait(EatTime)
  320. if MaxGrow<30 then
  321. MaxGrow=MaxGrow+.5
  322. else
  323. MaxGrow=30
  324. end
  325. if part.Parent~=nil then
  326. part:Remove()
  327. end
  328. end
  329.  
  330. --Hit:IsDescendantOf
  331.  
  332. i.Touched:connect(function(Hit)
  333. if not died then
  334. 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
  335. Infections[Hit]=true
  336. Eat(Hit,i,s)
  337. end
  338. end
  339. end)
  340.  
  341. mov=false
  342. mouse.Button1Down:connect(function()
  343. if not died then
  344. mov=true
  345. coroutine.resume(coroutine.create(function()
  346. while mov do
  347. swait()
  348. if i and Force then
  349. local force=(CFrame.new(i.Position,mouse.Hit.p).lookVector*GlV)
  350. i.BodyForce.force = Vector3.new(force.x,0,force.z)
  351. else
  352. Force=create("BodyForce"){
  353. Parent=i}
  354. end
  355. end
  356. if Force then
  357. Force.force=Vector3.new(0, 0, 0)
  358. end
  359. end))
  360. end
  361. end)
  362.  
  363. mouse.Button1Up:connect(function()
  364. mov=false
  365. end)
  366.  
  367. mouse.KeyDown:connect(function(k)
  368. k=k:lower()
  369. --stop
  370. if k=="q" and Vepz.Parent==nil then
  371. Vepz.Parent=i
  372. end
  373. --jump
  374. if not died then
  375. if k=="f" then
  376. local Veps=create("BodyVelocity"){
  377. maxForce=Vector3.new(0,math.huge,0),
  378. P=10,
  379. velocity=Vector3.new(0,100,0),
  380. Parent=i}
  381. game:GetService("Debris"):AddItem(Veps,.1)
  382. end
  383. --taunt
  384. if k=="t" then
  385. sounds(Root,"13378571",1,.5)
  386. end
  387. --change size
  388. if not mov then
  389. if k=="z" then
  390. if Grow<MaxGrow then
  391. Grow=Grow+.5
  392. GlV=GlV+2500
  393. else
  394. Grow=MaxGrow
  395. end
  396. elseif k=="x" then
  397. if Grow>MinGrow then
  398. Grow=Grow-.5
  399. GlV=GlV-2500
  400. else
  401. Grow=MinGrow
  402. end
  403. end
  404. --renew
  405. if k=="r" then
  406. i:Remove()
  407. end
  408. end
  409. end
  410. end)
  411.  
  412. mouse.KeyUp:connect(function(k)
  413. k=k:lower()
  414. if k=="q" and Vepz.Parent~=nil then
  415. Vepz.Parent=nil
  416. end
  417. end)
  418.  
  419. hum.Died:connect(function()
  420. died=true
  421. workspace.CurrentCamera.CameraSubject=hum
  422. game:GetService("Debris"):AddItem(Hin,.2)
  423. sounds(chr,"15632562",1,1.2)
  424. local info=TweenInfo.new(3,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out,0,false)
  425. local tween=game:GetService("TweenService"):Create(i,info,{Size=Vector3.new(18,18,18)})
  426. tween:Play()
  427. i.Anchored=true
  428. for _,v in pairs(chr:children()) do
  429. if v:IsA("BasePart")then
  430. v.Anchored=true
  431. elseif v:IsA("Accessory")then
  432. v.Handle.Anchored=true
  433. end
  434. end
  435. local Hint=create("Hint"){
  436. Parent=workspace,
  437. Text="All bawlz died!"
  438. }
  439. coroutine.resume(coroutine.create(function()
  440. swait(170)
  441. sounds(chr,"13114759",1,0.7)
  442. Hint.Text="Game over!"
  443. end))
  444. game:GetService("Debris"):AddItem(Hint,5)
  445. for si=0,1,.005 do
  446. swait()
  447. i.Transparency=si
  448. end
  449. --chr:Remove()
  450. for _,v in pairs(chr:children()) do
  451. if v.ClassName~="Sound" then
  452. v:Remove()
  453. end
  454. end
  455. end)
  456.  
  457.  
  458.  
  459. while not died do
  460. swait()
  461. if Hin.Parent==nil then
  462. Hin=create("Hint"){
  463. Parent=workspace,
  464. Text="Survive and kill the bawlz for win!"}
  465. end
  466.  
  467. if i.Parent==nil then
  468. i=create("Part"){
  469. Parent=chr,
  470. Color=Color3.new(math.random(0,1),math.random(0, 1),math.random(0, 1)),
  471. Locked=true,
  472. CFrame=Root.CFrame,
  473. Shape=0,
  474. Size=Vector3.new(8,8,8),
  475. Transparency=0.3,
  476. }
  477. NoOutline(i)
  478.  
  479. Force=create("BodyForce"){
  480. Parent=i}
  481.  
  482. Vepz=create("BodyVelocity"){
  483. maxForce=Vector3.new(math.huge,0,math.huge),
  484. P=10,
  485. velocity=Vector3.new(0,0,0)}
  486.  
  487. i.Touched:connect(function(Hit)
  488. if not died then
  489. 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
  490. Infections[Hit]=true
  491. Eat(Hit,i,s)
  492. end
  493. end
  494. end)
  495.  
  496. end
  497. i.Size=Vector3.new(Grow,Grow,Grow)
  498. iw.Parent=i
  499. iw.Part0=Root
  500. iw.Part1=i
  501. iw.C0=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  502. iw.C1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  503.  
  504. SizeN.Text=Grow
  505. MSizeN.Text="Max Size: "..MaxGrow
  506.  
  507. workspace.CurrentCamera.CameraSubject=i
  508. hum.PlatformStand=true
  509. Neck.C0=clerp(Neck.C0,CFrame.new(0,0,0),.4)
  510. RS.C0=clerp(RS.C0,CFrame.new(0,0,0),.4)
  511. LS.C0=clerp(LS.C0,CFrame.new(0,0,0),.4)
  512. RH.C0=clerp(RH.C0,CFrame.new(0,0,0),.4)
  513. LH.C0=clerp(LH.C0,CFrame.new(0,0,0),.4)
  514. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement