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://2758764055"
- rarmt = "rbxassetid://2758764113"
- larmm = "rbxassetid://2758766913"
- larmt = "rbxassetid://2758768107"
- torsm = "rbxassetid://2758632156"
- torst = "rbxassetid://2758632200"
- rlegm = "rbxassetid://2758639908"
- rlegt = "rbxassetid://2758639950"
- llegm = "rbxassetid://2758633344"
- llegt = "rbxassetid://2758633390"
- hedm = "rbxassetid://2758630605"
- headt = "rbxassetid://2758630739"
- coatm = "rbxassetid://2758632647"
- coatt = "rbxassetid://2758632692"
- songid = 0
- addedsize = 0
- hipheight = 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 = 2.075
- end
- for i,v in pairs (char:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("ShirtGraphic") 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 = "Sand"
- 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.3, -0.1, 0) * CFrame.Angles(0, 0, 0))
- local ram = AddMesh(ra2, rarmm, rarmt, Vector3.new(0.0875 + addedsize, 0.0875 + addedsize, 0.0875 + addedsize), Vector3.new(0, 0 + hipheight, 0))
- local lra = ra:Clone()
- lra.Material = "Sand"
- lra.Massless = true
- lra.CanCollide = false
- lra.Anchored = false
- lra.Parent = char
- lra.Name = "lowerra"
- lra.Transparency = 0
- local lraw = ezweld(char, lra, ra, CFrame.new(-0.15, 0.9, 0.475) * CFrame.Angles(0, math.rad(0), math.rad(0)))
- local lram = AddMesh(lra, "rbxassetid://2758848079", "rbxassetid://2758848118", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
- local rh = ra:Clone()
- rh.Material = "Sand"
- rh.Massless = true
- rh.CanCollide = false
- rh.Anchored = false
- rh.Parent = char
- rh.Name = "rhand"
- rh.Transparency = 0
- local rhw = ezweld(char, rh, ra, CFrame.new(-0.3, 1.5, 0.9) * CFrame.Angles(0, math.rad(0), math.rad(0)))
- local rhm = AddMesh(rh, "rbxassetid://2758766332", "rbxassetid://2758768436", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
- tors.Material = "Sand"
- local torsm = AddMesh(tors, torsm, torst, Vector3.new(0.0865 + addedsize, 0.0865 + addedsize, 0.0865 + addedsize), Vector3.new(0, 0 + hipheight, 0))
- la.Transparency = 1
- local la2 = la:Clone()
- la2.Material = "Sand"
- 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.3, -0.1, 0) * CFrame.Angles(0, 0, 0))
- local lam = AddMesh(la2, larmm, larmt, Vector3.new(0.0875 + addedsize, 0.0875 + addedsize, 0.0875 + addedsize), Vector3.new(0, 0 + hipheight, 0))
- local lla = la:Clone()
- lla.Material = "Sand"
- lla.Massless = true
- lla.CanCollide = false
- lla.Anchored = false
- lla.Parent = char
- lla.Name = "lowerla"
- lla.Transparency = 0
- local llaw = ezweld(char, lla, la, CFrame.new(0.15, 0.9, 0.425) * CFrame.Angles(0, math.rad(0), math.rad(0)))
- local llam = AddMesh(lla, "rbxassetid://2758768059", "rbxassetid://2758768107", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
- local lh = la:Clone()
- lh.Material = "Sand"
- lh.Massless = true
- lh.CanCollide = false
- lh.Anchored = false
- lh.Parent = char
- lh.Name = "lhand"
- lh.Transparency = 0
- local rhw = ezweld(char, lh, la, CFrame.new(0.3, 1.5, 0.9) * CFrame.Angles(0, math.rad(0), math.rad(0)))
- local rhm = AddMesh(lh, "rbxassetid://2758768377", "rbxassetid://2758768436", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
- local coat = Instance.new("Part",char)
- coat.Size = Vector3.new(0.1, 0.1, 0.1)
- coat.CanCollide = false
- coat.Material = "Sand"
- local coatw = ezweld(char, coat, tors, CFrame.Angles(0, 0, 0))
- local coatm = AddMesh(coat, coatm, coatt, Vector3.new(0.0865 + addedsize, 0.0861 + addedsize, 0.0865 + addedsize), Vector3.new(0.002, -1.5 + hipheight, -0.14))
- rl.Transparency = 1
- local rl2 = rl:Clone()
- rl2.Material = "Sand"
- 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.175, 0, 0.15) * CFrame.Angles(0, 0, 0))
- local rlm = AddMesh(rl2, rlegm, rlegt, Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.45 + hipheight, 0))
- local lrl = rl:Clone()
- lrl.Material = "Sand"
- lrl.Massless = true
- lrl.CanCollide = false
- lrl.Anchored = false
- lrl.Parent = char
- lrl.Name = "lowerrl"
- lrl.Transparency = 0
- local lrlw = ezweld(char, lrl, rl, CFrame.new(-0.1, 1.5, -0.175) * CFrame.Angles(0, 0, 0))
- local lrlm = AddMesh(lrl, "rbxassetid://2758762609", "rbxassetid://2758762702", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
- local rf = rl:Clone()
- rf.Material = "Sand"
- rf.Massless = true
- rf.CanCollide = false
- rf.Anchored = false
- rf.Parent = char
- rf.Name = "rfoot"
- rf.Transparency = 0
- local rfw = ezweld(char, rf, rl, CFrame.new(-0.2, 2.5, 0.125) * CFrame.Angles(0, 0, 0))
- local rfm = AddMesh(rf, "rbxassetid://2758641128", "rbxassetid://2758641177", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
- ll.Transparency = 1
- local ll2 = ll:Clone()
- ll2.Material = "Sand"
- ll2.Massless = true
- ll2.CanCollide = false
- ll2.Anchored = false
- ll2.Parent = char
- ll2.Name = "fakell"
- ll2.Transparency = 0
- local llw = ezweld(char, ll2, ll, CFrame.new(-0.175, 0, 0.15) * CFrame.Angles(0, 0, 0))
- local llm = AddMesh(ll2, llegm, llegt, Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.45 + hipheight, 0))
- local lll = ll:Clone()
- lll.Material = "Sand"
- lll.Massless = true
- lll.CanCollide = false
- lll.Anchored = false
- lll.Parent = char
- lll.Name = "lowerll"
- lll.Transparency = 0
- local lllw = ezweld(char, lll, ll, CFrame.new(0.1 - 0.025, 1.5, -0.175) * CFrame.Angles(0, 0, 0))
- local lllm = AddMesh(lll, "rbxassetid://2758633653", "rbxassetid://2758633703", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
- local lf = ll:Clone()
- lf.Material = "Sand"
- lf.Massless = true
- lf.CanCollide = false
- lf.Anchored = false
- lf.Parent = char
- lf.Name = "lfoot"
- lf.Transparency = 0
- local lfw = ezweld(char, lf, ll, CFrame.new(0.2, 2.5, 0.125) * CFrame.Angles(0, 0, 0))
- local lfm = AddMesh(lf, "rbxassetid://2758633944", "rbxassetid://2758633997", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
- hed.Transparency = 0.99
- hed.Size = Vector3.new(0.1, 0.1, 0.1)
- hed.face.Transparency = 1
- local hed2 = hed:Clone()
- hed2.Material = "Sand"
- 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(0), 0))
- local hedm = AddMesh(hed2, hedm, headt, Vector3.new(0.08675, 0.08675, 0.08675), Vector3.new(0, -0.25 + hipheight, 0))
- local eyes = hed:Clone()
- eyes.Material = "Sand"
- eyes.Massless = true
- eyes.CanCollide = false
- eyes.Anchored = false
- eyes.Parent = char
- eyes.Name = "eyes"
- eyes.Transparency = 0
- eyes.face:remove()
- local eyew = ezweld(char, eyes, hed, CFrame.new(0.0025, 0.125, 0.1675) * CFrame.Angles(0, math.rad(0), 0))
- local eyem = AddMesh(eyes, "rbxassetid://2758855229", "rbxassetid://2758808160", Vector3.new(0.08675, 0.08675, 0.08675), Vector3.new(0, 0 + hipheight, 0))
- mouse.KeyDown:connect(function(key)
- if key == "z" then
- songid = 0
- song:Play()
- end
- if key == "x" then
- songid = 273516568
- song:Play()
- end
- if key == "c" then
- songid = 2296950397
- 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