Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- rarmm = "rbxassetid://664734011"
- rarmt = "rbxassetid://664734018"
- larmm = "rbxassetid://664736693"
- larmt = "rbxassetid://664736699"
- torsm = "rbxassetid://664732624"
- torst = "rbxassetid://664732641"
- rlegm = "rbxassetid://664739314"
- rlegt = "rbxassetid://664739325"
- llegm = "rbxassetid://664739583"
- llegt = "rbxassetid://664739591"
- hedm = "rbxassetid://664733046"
- headt = "rbxassetid://664733052"
- coatm = "rbxassetid://664733394"
- coatt = "rbxassetid://664733400"
- songid = 0
- plr = owner
- mouse = plr:GetMouse()
- char = plr.Character
- tors = char.Torso
- hed = char.Head
- la = char["Left Arm"]
- ra = char["Right Arm"]
- ll = char["Left Leg"]
- rl = char["Right Leg"]
- hum = char:FindFirstChildOfClass("Humanoid")
- song = Instance.new("Sound",hed)
- song.SoundId = "rbxassetid://" ..songid
- song.Volume = 10
- song.Looped = true
- song:Play()
- if hum then
- hum.HipHeight = -1.75
- end
- for i,v in pairs (char:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") then
- v:remove()
- end
- end
- function AddMesh(Part, MeshId, TextureId, Scale, Offset)
- local Mesh = Instance.new("SpecialMesh",Part);
- Mesh.MeshId = MeshId;
- Mesh.TextureId = TextureId;
- Mesh.Scale = Scale;
- Mesh.Offset = Offset;
- return Mesh;
- end
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- ra.Transparency = 1
- local ra2 = ra:Clone()
- ra2.Material = "Fabric"
- ra2.Massless = true
- ra2.CanCollide = false
- ra2.Anchored = false
- ra2.Parent = char
- ra2.Name = "fakera"
- ra2.Transparency = 0
- local raw = ezweld(char, ra2, ra, CFrame.new(-0.35, 0.25, 0) * CFrame.Angles(0, math.rad(180), math.rad(55)))
- local ram = AddMesh(ra2, rarmm, rarmt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
- tors.Material = "Fabric"
- local torsm = AddMesh(tors, torsm, torst, Vector3.new(0.0335, 0.0335, 0.0335), Vector3.new(0, 0, 0))
- la.Transparency = 1
- local la2 = la:Clone()
- la2.Material = "Fabric"
- la2.Massless = true
- la2.CanCollide = false
- la2.Anchored = false
- la2.Parent = char
- la2.Name = "fakela"
- la2.Transparency = 0
- local law = ezweld(char, la2, la, CFrame.new(0.35, 0.25, 0) * CFrame.Angles(0, math.rad(180), math.rad(-55)))
- local lam = AddMesh(la2, larmm, larmt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
- local coat = Instance.new("Part",char)
- coat.Size = Vector3.new(0.1, 0.1, 0.1)
- coat.CanCollide = false
- coat.Material = "Fabric"
- local coatw = ezweld(char, coat, tors, CFrame.Angles(0, math.rad(180), 0))
- local coatm = AddMesh(coat, coatm, coatt, Vector3.new(0.0065, 0.0065, 0.0065), Vector3.new(0, 0.25, -0.05))
- rl.Transparency = 1
- local rl2 = rl:Clone()
- rl2.Material = "Fabric"
- rl2.Massless = true
- rl2.CanCollide = false
- rl2.Anchored = false
- rl2.Parent = char
- rl2.Name = "fakerl"
- rl2.Transparency = 0
- local rlw = ezweld(char, rl2, rl, CFrame.new(0.1, -1, -0.25) * CFrame.Angles(0, math.rad(180), 0))
- local rlm = AddMesh(rl2, rlegm, rlegt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
- ll.Transparency = 1
- local ll2 = ll:Clone()
- ll2.Material = "Fabric"
- ll2.Massless = true
- ll2.CanCollide = false
- ll2.Anchored = false
- ll2.Parent = char
- ll2.Name = "fakell"
- ll2.Transparency = 0
- local rlw = ezweld(char, ll2, ll, CFrame.new(-0.1, -1, -0.25) * CFrame.Angles(0, math.rad(180), 0))
- local rlm = AddMesh(ll2, llegm, llegt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
- hed.Transparency = 0.99
- local hed2 = hed:Clone()
- hed2.Material = "Fabric"
- hed2.Massless = true
- hed2.CanCollide = false
- hed2.Anchored = false
- hed2.Parent = char
- hed2.Name = "fakehed"
- hed2.Transparency = 0
- hed2.face:remove()
- local hedw = ezweld(char, hed2, hed, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(180), 0))
- local hedm = AddMesh(hed2, hedm, headt, Vector3.new(0.0665, 0.0665, 0.0665), Vector3.new(0, 0.75, -0.15))
- mouse.KeyDown:connect(function(key)
- if key == "z" then
- songid = 0
- song:Play()
- end
- if key == "x" then
- songid = 1731102335
- song:Play()
- end
- end)
- plr.Chatted:connect(function(msg)
- msg=msg:lower()
- if msg == "!blue" then
- hedm.TextureId = "http://www.roblox.com/asset/?id=4464057115"
- end
- if msg == "!red" then
- hedm.TextureId = headt
- end
- end)
- while true do
- wait()
- song.SoundId = "rbxassetid://" ..songid
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement