SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | --no touchie | |
| 7 | wait() | |
| 8 | local plr = game.Players.LocalPlayer | |
| 9 | local char = plr.Character or plr.CharacterAdded:wait() | |
| 10 | local gui = Instance.new("ScreenGui", plr.PlayerGui)
| |
| 11 | local hi = Instance.new("TextButton", gui)
| |
| 12 | hi.Style = "RobloxRoundButton" | |
| 13 | hi.Position = UDim2.new(0.87, 0,0.895, 0) | |
| 14 | hi.Size = UDim2.new(0.126, 0,0.094, 0) | |
| 15 | hi.TextColor3 = Color3.new(0,0,0) | |
| 16 | hi.Text = "Metal Cap" | |
| 17 | hi.TextSize = 30 | |
| 18 | hi.Font = "Arcade" | |
| 19 | ||
| 20 | local SP = Instance.new("Model")
| |
| 21 | SP.Name = plr.Name.."Clothing" | |
| 22 | SP.Parent = game.ReplicatedStorage | |
| 23 | wait(1) | |
| 24 | local char = plr.Character or plr.CharacterAdded:Wait() | |
| 25 | char:FindFirstChild("Shirt"):Clone().Parent = SP
| |
| 26 | char:FindFirstChild("Pants"):Clone().Parent = SP
| |
| 27 | char:FindFirstChild("Body Colors"):Clone().Parent = SP
| |
| 28 | ||
| 29 | function metal() | |
| 30 | char.Humanoid.Name = "Metallic" | |
| 31 | local music = Instance.new("Sound")
| |
| 32 | music.Looped = true | |
| 33 | music.SoundId = "rbxassetid://1391488070" | |
| 34 | music.Parent = char.Head | |
| 35 | music.Volume = 2 | |
| 36 | music:Play() | |
| 37 | char:FindFirstChild("Shirt"):Remove()
| |
| 38 | char:FindFirstChild("Pants"):Remove()
| |
| 39 | hi.Visible = false | |
| 40 | char.Head.Reflectance = 0.5 | |
| 41 | char.Torso.Reflectance = 0.5 | |
| 42 | char["Left Arm"].Reflectance = 0.5 | |
| 43 | char["Right Arm"].Reflectance = 0.5 | |
| 44 | char["Left Leg"].Reflectance = 0.5 | |
| 45 | char["Right Leg"].Reflectance = 0.5 | |
| 46 | local ff = Instance.new("ForceField", char)
| |
| 47 | ff.Visible = false | |
| 48 | local skin = Instance.new("Skin")
| |
| 49 | skin.Parent = char | |
| 50 | skin.SkinColor = BrickColor.new("Dark stone grey")
| |
| 51 | char.Head.Material = "SmoothPlastic" | |
| 52 | char.Torso.Material = "SmoothPlastic" | |
| 53 | char["Left Arm"].Material = "SmoothPlastic" | |
| 54 | char["Right Arm"].Material = "SmoothPlastic" | |
| 55 | char["Left Leg"].Material = "SmoothPlastic" | |
| 56 | char["Right Leg"].Material = "SmoothPlastic" | |
| 57 | char.Head.face.Transparency = 1 | |
| 58 | char:FindFirstChildOfClass("Humanoid"):SetStateEnabled("Swimming", false)
| |
| 59 | local hat = Instance.new("Part")
| |
| 60 | hat.Name = "Fedora" | |
| 61 | hat.Parent = char.Head | |
| 62 | hat.Reflectance = 0.5 | |
| 63 | hat.BrickColor = BrickColor.new("Dark stone grey")
| |
| 64 | hat.CanCollide = false | |
| 65 | local hatMesh = Instance.new("SpecialMesh")
| |
| 66 | hatMesh.Parent = hat | |
| 67 | hatMesh.MeshId = "rbxassetid://46834172" | |
| 68 | hatMesh.Scale = Vector3.new(1.1,1.1,1.1) | |
| 69 | local weld = Instance.new("Weld")
| |
| 70 | weld.Parent = char.Head | |
| 71 | weld.Part0 = hat | |
| 72 | weld.Part1 = char.Head | |
| 73 | weld.C0 = CFrame.new(0, -.6, 0.1) | |
| 74 | for _, h in pairs(char:GetChildren()) do | |
| 75 | if h.ClassName == "Accessory" then | |
| 76 | h.Handle.Transparency = 1 | |
| 77 | end | |
| 78 | end | |
| 79 | wait(27.7) | |
| 80 | music:Remove() | |
| 81 | local sp = game.ReplicatedStorage:FindFirstChild(plr.Name.."Clothing") | |
| 82 | sp.Shirt:Clone().Parent = char | |
| 83 | sp.Pants:Clone().Parent = char | |
| 84 | char.Head.BrickColor = sp["Body Colors"].HeadColor | |
| 85 | char.Torso.BrickColor = sp["Body Colors"].TorsoColor | |
| 86 | char["Left Arm"].BrickColor = sp["Body Colors"].LeftArmColor | |
| 87 | char["Left Leg"].BrickColor = sp["Body Colors"].LeftLegColor | |
| 88 | char["Right Arm"].BrickColor = sp["Body Colors"].RightArmColor | |
| 89 | char["Right Leg"].BrickColor = sp["Body Colors"].RightLegColor | |
| 90 | char.Head.Reflectance = 0 | |
| 91 | char.Torso.Reflectance = 0 | |
| 92 | char["Left Arm"].Reflectance = 0 | |
| 93 | char["Right Arm"].Reflectance = 0 | |
| 94 | char["Left Leg"].Reflectance = 0 | |
| 95 | char["Right Leg"].Reflectance = 0 | |
| 96 | char:FindFirstChildOfClass("Humanoid"):SetStateEnabled("Swimming", true)
| |
| 97 | hat:Remove() | |
| 98 | weld:Remove() | |
| 99 | ff:Remove() | |
| 100 | char.Head.face.Transparency = 0 | |
| 101 | char:WaitForChild("Metallic").Name = "Humanoid"
| |
| 102 | for _, h in pairs(char:GetChildren()) do | |
| 103 | if h.ClassName == "Accessory" then | |
| 104 | h.Handle.Transparency = 0 | |
| 105 | end | |
| 106 | end | |
| 107 | wait(5) | |
| 108 | hi.Visible = true | |
| 109 | end | |
| 110 | ||
| 111 | function remove() | |
| 112 | SP:Remove() | |
| 113 | hi.Visible = false | |
| 114 | end | |
| 115 | ||
| 116 | hi.MouseButton1Click:connect(metal) | |
| 117 | char.Humanoid.Died:connect(remove) |