View difference between Paste ID: gVfvT3bN and XkWpZFYh
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4-
plr=game.Players.LocalPlayer
4+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20-
mouse=plr:GetMouse()
20+
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28-
MaxGrow=8
28+
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
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
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local h,t
75
	--Give the server mouse data 30 times every second, but only if the values changed
76
	--If player is not moving their mouse, client won't fire events
77
	while wait(1/30) do
78
		if h~=Mouse.Hit or t~=Mouse.Target then
79
			h,t=Mouse.Hit,Mouse.Target
80
			Event:FireServer({isMouse=true,Target=t,Hit=h})
81
		end
82
	end]==],Player.Character)
83
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
84
end
85
86
--[[Salvo_Starly[Salvy].Thingy_2018.8]]--
87
--[[Project Name: R.U.N]]--
88
wait(.2)
89
plr=game.Players.animefreak15439
90
chr=plr.Character
91
Head=chr.Head
92
Root=chr.HumanoidRootPart
93
Torso=chr.Torso
94
RArm=chr["Right Arm"]
95
LArm=chr["Left Arm"]
96
RLeg=chr["Right Leg"]
97
LLeg=chr["Left Leg"]
98
RJ=Root.RootJoint
99
Neck=Torso.Neck
100
LS=Torso["Left Shoulder"] 
101
LH=Torso["Left Hip"] 
102
RS=Torso["Right Shoulder"] 
103
RH=Torso["Right Hip"] 
104
hum=chr:FindFirstChildOfClass("Humanoid")
105
died=false
106
EatTime=110
107
Siz=8
108
BallMass=15000
109
SSpeed=1.5
110
Grow=8
111
MinGrow=3.5
112
MaxGrow=300
113
GlV=25000
114
115
create=LoadLibrary("RbxUtility").Create
116
117
chr.Animate:Remove()
118
hum.Animator:Remove()
119
120
function clerp(a,b,t)
121
return a:lerp(b,t)
122
end
123
124
local newMotor=function(name,p0,p1,c0,c1)
125
local w=Instance.new('Motor',p0)
126
w.Name=name
127
w.Part0=p0
128
w.Part1=p1
129
w.C0=c0
130
w.C1=c1
131
return w
132
end
133
for _,c in pairs(Torso:children()) do
134
if c:IsA("Motor") and c.Name~="Neck" then
135
c:Remove()
136
end
137
end
138
139
140
RJ.C0,RJ.C1=CFrame.new(0,0,0),CFrame.new(0,0,0)
141
Neck.C0,Neck.C1=CFrame.new(0,1.5,0),CFrame.new(0,0,0)
142
--[[RS.C0,RS.C1=CFrame.new(1.5,0,0),CFrame.new(0,0,0)
143
LS.C0,LS.C1=CFrame.new(-1.5,0,0),CFrame.new(0,0,0)
144
RH.C0,RH.C1=CFrame.new(.5,-2,0),CFrame.new(0,0,0)
145
LH.C0,LH.C1=CFrame.new(-.5,-2,0),CFrame.new(0,0,0)]]
146
local RS=newMotor("Right Shoulder",Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
147
local LS=newMotor("Left Shoulder",Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
148
local RH=newMotor("Right Hip",Torso, RLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
149
local LH=newMotor("Left Hip",Torso, LLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
150
151
function NoOutline(Part)
152
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface=10,10,10,10,10,10
153
end
154
155
function rayCast(Position,Direction,Range,Ignore)
156
return game:service("Workspace"):FindPartOnRay(Ray.new(Position,Direction.unit*(Range or 999.999)),Ignore)
157
end
158
159
ArtificialHB=create("BindableEvent"){
160
Parent=script,
161
Name="Heartbeat"}
162
163
script:WaitForChild("Heartbeat")
164
165
frame=0.0166666666666666667
166
tf=0
167
allowframeloss=false
168
tossremainder=false
169
lastframe=tick()
170
script.Heartbeat:Fire()
171
172
game:GetService("RunService").Heartbeat:connect(function(s,p)
173
tf=tf+s
174
if tf >=frame then
175
if allowframeloss then
176
script.Heartbeat:Fire()
177
lastframe=tick()
178
else
179
for i=1,math.floor(tf/frame) do
180
script.Heartbeat:Fire()
181
end
182
lastframe=tick()
183
end
184
if tossremainder then
185
tf=0
186
else
187
tf=tf-frame*math.floor(tf/frame)
188
end
189
end
190
end)
191
192
function swait(num)
193
if num==0 or num==nil then
194
ArtificialHB.Event:wait()
195
else
196
for i=0,num do
197
ArtificialHB.Event:wait()
198
end
199
end
200
end
201
202
function parts(Par,name,size,color,mat,ref,tra)
203
local part=create("Part"){
204
Parent=Par,
205
Name=name,
206
Size=size,
207
CanCollide=false,
208
Anchored=false,
209
BrickColor=BrickColor.new(color),
210
Material=mat,
211
Reflectance=ref,
212
Transparency=tra}
213
--Position=Torso.Position}
214
NoOutline(part)
215
part:BreakJoints()
216
return part 
217
end
218
219
function meshs(Par,name,scale,mtype,id)
220
local mesh=create("SpecialMesh"){
221
Parent=Par,
222
Name=name,
223
Scale=scale,
224
MeshType=mtype}
225
if id~="" then
226
mesh.MeshId="rbxassetid://"..id
227
end
228
return mesh
229
end
230
231
function welds(Par,name,p0,p1,c0,c1)
232
local weld=create("Weld"){
233
Parent=Par,
234
Name=name,
235
Part0=p0,
236
Part1=p1,
237
C0=c0,
238
C1=c1}
239
return weld
240
end
241
242
function sounds(Par,id,vol,pit)
243
local sound=create("Sound"){
244
Parent=Par,
245
SoundId="rbxassetid://"..id,
246
Volume=vol,
247
PlaybackSpeed=pit,
248
MaxDistance=66666666}
249
sound:Play()
250
game:GetService("Debris"):AddItem(sound,10)
251
return sound
252
end
253
254
for _,v in pairs(chr:children()) do
255
if v:IsA("BasePart")then
256
v.Transparency=1
257
elseif v:IsA("Accessory")then
258
v.Handle.Transparency=1
259
end
260
end
261
262
if Head:findFirstChild("face").Parent~=nil then
263
Head:findFirstChild("face").Transparency=1
264
end
265
266
Infections={}
267
268
--extremely lazy to use parts()
269
i=create("Part"){
270
Parent=chr,
271
Color=Color3.new(math.random(0,1),math.random(0, 1),math.random(0, 1)),
272
Locked=true,
273
CFrame=Root.CFrame,
274
Shape=0,
275
Size=Vector3.new(8,8,8),
276
Transparency=0.3,
277
}
278
NoOutline(i)
279
280
Force=create("BodyForce"){
281
Parent=i}
282
283
Vepz=create("BodyVelocity"){
284
maxForce=Vector3.new(math.huge,0,math.huge),
285
P=10,
286
velocity=Vector3.new(0,0,0)}
287
288
Hin=create("Hint"){
289
Parent=workspace,
290
Text="Survive and kill the bawlz for win!"
291
}
292
293
294
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))
295
296
297
sounds(chr,"2767085",1,1.5)
298
299
300
MainGui=create("ScreenGui"){
301
Name="RUNGui",
302
Parent=plr.PlayerGui,
303
DisplayOrder=5
304
}
305
306
SizeLabel=create("TextLabel"){
307
Parent=MainGui,
308
AnchorPoint=Vector2.new(.5,.5),
309
Position=UDim2.new(.5,0,.8,0),
310
Size=UDim2.new(.06,0,.08,0),
311
ZIndex=1,
312
Text="Bawlz Size:",
313-
if MaxGrow<30 then
313+
314
TextColor3=i.BrickColor.Color,
315
BorderColor3=i.BrickColor.Color,
316-
MaxGrow=30
316+
317
TextSize=18,
318
--TextScaled=true,
319
TextYAlignment="Top"
320
}
321
322
SizeN=create("TextLabel"){
323
Parent=SizeLabel,
324
AnchorPoint=Vector2.new(.5,.5),
325
Position=UDim2.new(.5,0,.5,0),
326
Size=UDim2.new(1,0,1,0),
327
ZIndex=2,
328
Text=Grow,
329
BackgroundTransparency=1,
330
TextColor3=i.BrickColor.Color,
331
Font="SourceSans",
332
TextSize=18,
333
--TextScaled=true,
334
TextYAlignment="Bottom"
335
}
336
337
MSizeN=create("TextLabel"){
338
Parent=SizeLabel,
339
AnchorPoint=Vector2.new(.5,.5),
340
Position=UDim2.new(.5,0,1,0),
341
Size=UDim2.new(1,0,1,0),
342
ZIndex=2,
343
Text="Max Size: "..MaxGrow,
344
BackgroundTransparency=1,
345
TextColor3=i.BrickColor.Color,
346
Font="SourceSans",
347
TextSize=18,
348
--TextScaled=true,
349
TextYAlignment="Bottom"
350
}
351
352
Infections[i]=true
353
354
local s=create("Sound"){
355
SoundId="rbxassetid://10722059",
356
Volume=1,
357
Parent=Root}
358
359
360
function Join(Part0, Part1)
361
local Connector=create("Weld"){
362
C0=Part0.CFrame:inverse(),
363
C1=Part1.CFrame:inverse(),
364
Part0=Part0,
365
Part1=Part1,
366
Parent=Part0}
367
coroutine.resume(coroutine.create(function()
368
while Part1.Parent~=nil do
369
swait()
370
Connector.Parent=Part0
371
Connector.Part0=Part0
372
Connector.Part1=Part1
373
end
374
Connector:Remove()
375
end))
376
return Connector
377
end
378
379
function Eat(part,ir,s)
380
part.CanCollide=false
381
part.Anchored=true
382
while (part.Position-ir.Position).magnitude>Siz/3 do
383
part.CanCollide=false
384
part:BreakJoints()
385
local c={part.CFrame:components()}
386
local v=part.Position+CFrame.new(part.Position,ir.Position).lookVector*SSpeed
387
c[1]=v.X
388
c[2]=v.Y
389
c[3]=v.Z
390
part.CFrame=CFrame.new(unpack(c))
391
swait()
392
end
393
s:Play()
394
local p=Join(ir,part)
395
part.Anchored=false
396
swait(EatTime)
397
if MaxGrow<300 then
398
MaxGrow=MaxGrow+.5
399
else
400
MaxGrow=300
401
end
402
if part.Parent~=nil then
403
part:Remove()
404
end
405
end
406
407
--Hit:IsDescendantOf
408
409
i.Touched:connect(function(Hit)
410
if not died then
411
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
412
Infections[Hit]=true
413
Eat(Hit,i,s)
414
end
415
end
416
end)
417
418
mov=false
419
mouse.Button1Down:connect(function()
420
if not died then
421
mov=true
422
coroutine.resume(coroutine.create(function()
423
while mov do
424
swait()
425
if i and Force then
426
local force=(CFrame.new(i.Position,mouse.Hit.p).lookVector*GlV)
427
i.BodyForce.force = Vector3.new(force.x,0,force.z)
428
else
429
Force=create("BodyForce"){
430
Parent=i}
431
end
432
end
433
if Force then
434
Force.force=Vector3.new(0, 0, 0)
435
end
436
end))
437
end
438
end)
439
440
mouse.Button1Up:connect(function()
441
mov=false
442
end)
443
444
mouse.KeyDown:connect(function(k)
445
k=k:lower()
446
--stop
447
if k=="q" and Vepz.Parent==nil then
448
Vepz.Parent=i
449
end
450
--jump
451
if not died then
452
if k=="f" then
453
local Veps=create("BodyVelocity"){
454
maxForce=Vector3.new(0,math.huge,0),
455
P=10,
456
velocity=Vector3.new(0,100,0),
457
Parent=i}
458
game:GetService("Debris"):AddItem(Veps,.1)
459
end
460
--taunt
461
if k=="t" then
462
sounds(Root,"13378571",1,.5)
463
end
464
--change size
465
if not mov then
466
if k=="z" then
467
if Grow<MaxGrow then
468
Grow=Grow+.5
469
GlV=GlV+2500
470
else
471
Grow=MaxGrow
472
end
473
elseif k=="x" then
474
if Grow>MinGrow then
475
Grow=Grow-.5
476
GlV=GlV-2500
477
else
478
Grow=MinGrow
479
end
480
end
481
--renew
482
if k=="r" then
483
i:Remove()
484
end
485
end
486
end
487
end)
488
489
mouse.KeyUp:connect(function(k)
490
k=k:lower()
491
if k=="q" and Vepz.Parent~=nil then
492
Vepz.Parent=nil
493
end
494
end)
495
496
hum.Died:connect(function()
497
died=true
498
workspace.CurrentCamera.CameraSubject=hum
499
game:GetService("Debris"):AddItem(Hin,.2)
500
sounds(chr,"15632562",1,1.2)
501
local info=TweenInfo.new(3,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out,0,false)
502
local tween=game:GetService("TweenService"):Create(i,info,{Size=Vector3.new(18,18,18)})
503
tween:Play()
504
i.Anchored=true
505
for _,v in pairs(chr:children()) do
506
if v:IsA("BasePart")then
507
v.Anchored=true
508
elseif v:IsA("Accessory")then
509
v.Handle.Anchored=true
510
end
511
end
512
local Hint=create("Hint"){
513
Parent=workspace,
514
Text="All bawlz died!"
515
}
516
coroutine.resume(coroutine.create(function()
517
swait(170)
518
sounds(chr,"13114759",1,0.7)
519
Hint.Text="Game over!"
520
end))
521
game:GetService("Debris"):AddItem(Hint,5)
522
for si=0,1,.005 do
523
swait()
524
i.Transparency=si
525
end
526
--chr:Remove()
527
for _,v in pairs(chr:children()) do
528
if v.ClassName~="Sound" then
529
v:Remove()
530
end
531
end
532
end)
533
534
535
536
while not died do
537
swait()
538
if Hin.Parent==nil then
539
Hin=create("Hint"){
540
Parent=workspace,
541
Text="Survive and kill the bawlz for win!"}
542
end
543
544
if i.Parent==nil then
545
i=create("Part"){
546
Parent=chr,
547
Color=Color3.new(math.random(0,1),math.random(0, 1),math.random(0, 1)),
548
Locked=true,
549
CFrame=Root.CFrame,
550
Shape=0,
551
Size=Vector3.new(8,8,8),
552
Transparency=0.3,
553
}
554
NoOutline(i)
555
556
Force=create("BodyForce"){
557
Parent=i}
558
559
Vepz=create("BodyVelocity"){
560
maxForce=Vector3.new(math.huge,0,math.huge),
561
P=10,
562
velocity=Vector3.new(0,0,0)}
563
564
i.Touched:connect(function(Hit)
565
if not died then
566
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
567
Infections[Hit]=true
568
Eat(Hit,i,s)
569
end
570
end
571
end)
572
573
end
574
i.Size=Vector3.new(Grow,Grow,Grow)
575
iw.Parent=i
576
iw.Part0=Root
577
iw.Part1=i
578
iw.C0=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
579
iw.C1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
580
581
SizeN.Text=Grow
582
MSizeN.Text="Max Size: "..MaxGrow
583
584
workspace.CurrentCamera.CameraSubject=i
585
hum.PlatformStand=true
586
Neck.C0=clerp(Neck.C0,CFrame.new(0,0,0),.4)
587
RS.C0=clerp(RS.C0,CFrame.new(0,0,0),.4)
588
LS.C0=clerp(LS.C0,CFrame.new(0,0,0),.4)
589
RH.C0=clerp(RH.C0,CFrame.new(0,0,0),.4)
590
LH.C0=clerp(LH.C0,CFrame.new(0,0,0),.4)
591
end