View difference between Paste ID: 92ziHqtT and 2SSaPsvY
SHOW: | | - or go back to the newest paste.
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
wait(1)
9
local gui=Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
10
local b1=Instance.new("TextButton",gui)
11
local b2=Instance.new("TextButton",gui)
12
local re=Instance.new("TextButton",gui)
13
local sp=Instance.new("TextButton",gui)
14
local mu=Instance.new("TextButton",gui)
15
local playb=Instance.new("TextButton",gui)
16
local stopb=Instance.new("TextButton",gui)
17
local n=Instance.new("TextBox",gui)
18
local music=Instance.new("Sound",gui)
19
music.Name="musicc"
20
gui.ResetOnSpawn=false
21
gui.Name="invisible"
22
b1.Name="invis"
23
b2.Name="notinvis"
24
re.Name="guiremove"
25
sp.Name="speed"
26
mu.Name="music"
27
b1:TweenPosition("{0.812, 0},{0.068, 0}","Out","Elastic",0.8)
28
b2:TweenPosition("{0.812, 0},{0.189, 0}","Out","Elastic",0.8)
29
re:TweenPosition("{0.812, 0},{0.015, 0}","Out","Elastic",0.8)
30
sp:TweenPosition("{0.812, 0},{0.300, 0}","Out","Elastic",0.8)
31
mu:TweenPosition("{0.812, 0},{0.400, 0}","Out","Elastic",0.8)
32
b1:TweenSize("{0, 200},{0, 50}","In","Bounce",0.5)
33
b2:TweenSize("{0, 200},{0, 50}","In","Bounce",0.5)
34
re:TweenSize("{0, 100},{0, 25}","In","Bounce",0.5)
35
sp:TweenSize("{0, 150},{0, 50}","In","Bounce",0.5)
36
mu:TweenSize("{0, 150},{0, 50}","In","Bounce",0.5)
37
b1.TextScaled=true
38
b2.TextScaled=true
39
re.TextScaled=true
40
sp.TextScaled=true
41
mu.TextScaled=true
42
b1.Visible=true
43
b2.Visible=true
44
re.Visible=true
45
sp.Visible=true
46
mu.Visible=true
47
b1.Text="Remove Limbs"
48
b2.Text="RestCharacter"
49
re.Text="RemoveGui"
50
sp.Text="FastRun"
51
mu.Text="AddMusic"
52
local p=game.Players.LocalPlayer.Character
53
b1.MouseButton1Click:Connect(function()
54
	p.LeftUpperLeg:Destroy()
55
	p.LeftLowerLeg:Destroy()
56
	p.LeftFoot:Destroy()
57
	p.RightUpperLeg:Destroy()
58
	p.RightLowerLeg:Destroy()
59
	p.RightFoot:Destroy()
60
	p.LeftUpperArm:Destroy()
61
	p.LeftLowerArm:Destroy()
62
	p.LeftHand:Destroy()
63
	p.RightUpperArm:Destroy()
64
	p.RightLowerArm:Destroy()
65
	p.RightHand:Destroy()
66
end)
67
b2.MouseButton1Click:Connect(function()
68
	p.Humanoid.Health=0
69
end)
70
re.MouseButton1Click:Connect(function()
71
	game.Players.LocalPlayer.PlayerGui.invisible:Destroy()
72
end)
73
sp.MouseButton1Click:Connect(function()
74
	p.Humanoid.WalkSpeed=80
75
end)
76
mu.MouseButton1Click:Connect(function()
77
mu.Visible=false
78
n:TweenPosition("{0.384, 0},{0.047, 0}","Out","Elastic",0.8)
79
n:TweenSize("{0, 245},{0, 44}","In","Bounce",0.25)
80
playb:TweenPosition("{0.45, 0},{0.161, 0}","Out","Elastic",0.8)
81
playb:TweenSize("{0, 105},{0, 25}","In","Bounce",0.25)
82
stopb:TweenPosition("{0.45, 0},{0.210, 0}","Out","Elastic",0.8)
83
stopb:TweenSize("{0, 105},{0, 25}","In","Bounce",0.25)
84
n.Visible=true
85
playb.Visible=true
86
stopb.Visible=true
87
n.Selectable=true
88
n.Active=true
89
n.PlaceholderText="https://www.roblox.com/asset/?id="
90
n.Text="https://www.roblox.com/asset/?id="
91
--n.PlaceholderColor3=Color3.new"85, 170, 255"
92
playb.Text="Play"
93
stopb.Text="Stop" --RemoveMusicGui
94
music.Looped=true
95
music.Playing=false
96
while true do
97
	wait(2)
98
	music.SoundId=n.Text
99
end
100
end)
101
playb.MouseButton1Click:Connect(function()
102
	music:Play()
103
end)
104
stopb.MouseButton1Click:Connect(function()
105
n:TweenPosition("{-0.172, 0},{0.078, 0}","Out","Elastic",0.1)
106
n:TweenSize("{0, 100},{0, 10}","In","Bounce",0.1)
107
playb:TweenPosition("{-0.083, 0},{0.189, 0}","Out","Elastic",0.1)
108
playb:TweenSize("{0, 80},{0, 5}","In","Bounce",0.1)
109
stopb:TweenPosition("{-0.083, 0},{0.189, 0}","Out","Elastic",0.1)
110
stopb:TweenSize("{0, 80},{0, 5}","In","Bounce",0.1)
111
	n.Visible=false
112
	playb.Visible=false
113
	mu.Visible=true
114
	stopb.Visible=false
115
	music:Stop()
116
end)