Advertisement
HenloMyDude

toady

Nov 27th, 2019
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1.  
  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.  
  7. rarmm = "rbxassetid://664734011"
  8. rarmt = "rbxassetid://664734018"
  9. larmm = "rbxassetid://664736693"
  10. larmt = "rbxassetid://664736699"
  11. torsm = "rbxassetid://664732624"
  12. torst = "rbxassetid://664732641"
  13. rlegm = "rbxassetid://664739314"
  14. rlegt = "rbxassetid://664739325"
  15. llegm = "rbxassetid://664739583"
  16. llegt = "rbxassetid://664739591"
  17. hedm = "rbxassetid://664733046"
  18. headt = "rbxassetid://664733052"
  19. coatm = "rbxassetid://664733394"
  20. coatt = "rbxassetid://664733400"
  21. songid = 0
  22.  
  23. plr = owner
  24. mouse = plr:GetMouse()
  25. char = plr.Character
  26. tors = char.Torso
  27. hed = char.Head
  28. la = char["Left Arm"]
  29. ra = char["Right Arm"]
  30. ll = char["Left Leg"]
  31. rl = char["Right Leg"]
  32. hum = char:FindFirstChildOfClass("Humanoid")
  33.  
  34. song = Instance.new("Sound",hed)
  35. song.SoundId = "rbxassetid://" ..songid
  36. song.Volume = 10
  37. song.Looped = true
  38. song:Play()
  39.  
  40. if hum then
  41. hum.HipHeight = -1.75
  42. end
  43.  
  44. for i,v in pairs (char:children()) do
  45. if v:IsA("Hat") or v:IsA("Accessory") then
  46. v:remove()
  47. end
  48. end
  49.  
  50. function AddMesh(Part, MeshId, TextureId, Scale, Offset)
  51. local Mesh = Instance.new("SpecialMesh",Part);
  52. Mesh.MeshId = MeshId;
  53. Mesh.TextureId = TextureId;
  54. Mesh.Scale = Scale;
  55. Mesh.Offset = Offset;
  56. return Mesh;
  57. end
  58.  
  59. clerp = function(toclerp, cf, number)
  60. local joint = toclerp
  61. joint.C0 = joint.C0:Lerp(cf, number)
  62. end
  63.  
  64. clerp2 = function(toclerp, cf)
  65. local joint = toclerp
  66. joint.C0 = cf
  67. end
  68.  
  69. ezweld = function(p, a, b, cf)
  70. local weld = Instance.new("Weld",p)
  71. weld.Part0 = a
  72. weld.Part1 = b
  73. weld.C0 = cf
  74. return weld
  75. end
  76.  
  77. ra.Transparency = 1
  78. local ra2 = ra:Clone()
  79. ra2.Material = "Fabric"
  80. ra2.Massless = true
  81. ra2.CanCollide = false
  82. ra2.Anchored = false
  83. ra2.Parent = char
  84. ra2.Name = "fakera"
  85. ra2.Transparency = 0
  86. local raw = ezweld(char, ra2, ra, CFrame.new(-0.35, 0.25, 0) * CFrame.Angles(0, math.rad(180), math.rad(55)))
  87. local ram = AddMesh(ra2, rarmm, rarmt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
  88.  
  89. tors.Material = "Fabric"
  90. local torsm = AddMesh(tors, torsm, torst, Vector3.new(0.0335, 0.0335, 0.0335), Vector3.new(0, 0, 0))
  91.  
  92. la.Transparency = 1
  93. local la2 = la:Clone()
  94. la2.Material = "Fabric"
  95. la2.Massless = true
  96. la2.CanCollide = false
  97. la2.Anchored = false
  98. la2.Parent = char
  99. la2.Name = "fakela"
  100. la2.Transparency = 0
  101. local law = ezweld(char, la2, la, CFrame.new(0.35, 0.25, 0) * CFrame.Angles(0, math.rad(180), math.rad(-55)))
  102. local lam = AddMesh(la2, larmm, larmt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
  103.  
  104. local coat = Instance.new("Part",char)
  105. coat.Size = Vector3.new(0.1, 0.1, 0.1)
  106. coat.CanCollide = false
  107. coat.Material = "Fabric"
  108. local coatw = ezweld(char, coat, tors, CFrame.Angles(0, math.rad(180), 0))
  109. local coatm = AddMesh(coat, coatm, coatt, Vector3.new(0.0065, 0.0065, 0.0065), Vector3.new(0, 0.25, -0.05))
  110.  
  111. rl.Transparency = 1
  112. local rl2 = rl:Clone()
  113. rl2.Material = "Fabric"
  114. rl2.Massless = true
  115. rl2.CanCollide = false
  116. rl2.Anchored = false
  117. rl2.Parent = char
  118. rl2.Name = "fakerl"
  119. rl2.Transparency = 0
  120. local rlw = ezweld(char, rl2, rl, CFrame.new(0.1, -1, -0.25) * CFrame.Angles(0, math.rad(180), 0))
  121. local rlm = AddMesh(rl2, rlegm, rlegt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
  122.  
  123. ll.Transparency = 1
  124. local ll2 = ll:Clone()
  125. ll2.Material = "Fabric"
  126. ll2.Massless = true
  127. ll2.CanCollide = false
  128. ll2.Anchored = false
  129. ll2.Parent = char
  130. ll2.Name = "fakell"
  131. ll2.Transparency = 0
  132. local rlw = ezweld(char, ll2, ll, CFrame.new(-0.1, -1, -0.25) * CFrame.Angles(0, math.rad(180), 0))
  133. local rlm = AddMesh(ll2, llegm, llegt, Vector3.new(0.015, 0.015, 0.015), Vector3.new(0, 0, 0))
  134.  
  135. hed.Transparency = 0.99
  136. local hed2 = hed:Clone()
  137. hed2.Material = "Fabric"
  138. hed2.Massless = true
  139. hed2.CanCollide = false
  140. hed2.Anchored = false
  141. hed2.Parent = char
  142. hed2.Name = "fakehed"
  143. hed2.Transparency = 0
  144. hed2.face:remove()
  145. local hedw = ezweld(char, hed2, hed, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(180), 0))
  146. local hedm = AddMesh(hed2, hedm, headt, Vector3.new(0.0665, 0.0665, 0.0665), Vector3.new(0, 0.75, -0.15))
  147.  
  148. mouse.KeyDown:connect(function(key)
  149. if key == "z" then
  150. songid = 0
  151. song:Play()
  152. end
  153. if key == "x" then
  154. songid = 1731102335
  155. song:Play()
  156. end
  157. end)
  158.  
  159. plr.Chatted:connect(function(msg)
  160. msg=msg:lower()
  161. if msg == "!blue" then
  162. hedm.TextureId = "http://www.roblox.com/asset/?id=4464057115"
  163. end
  164. if msg == "!red" then
  165. hedm.TextureId = headt
  166. end
  167. end)
  168.  
  169. while true do
  170. wait()
  171. song.SoundId = "rbxassetid://" ..songid
  172. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement