Advertisement
HenloMyDude

SPY!!!!

Nov 29th, 2019
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.66 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://2758764055"
  8. rarmt = "rbxassetid://2758764113"
  9. larmm = "rbxassetid://2758766913"
  10. larmt = "rbxassetid://2758768107"
  11. torsm = "rbxassetid://2758632156"
  12. torst = "rbxassetid://2758632200"
  13. rlegm = "rbxassetid://2758639908"
  14. rlegt = "rbxassetid://2758639950"
  15. llegm = "rbxassetid://2758633344"
  16. llegt = "rbxassetid://2758633390"
  17. hedm = "rbxassetid://2758630605"
  18. headt = "rbxassetid://2758630739"
  19. coatm = "rbxassetid://2758632647"
  20. coatt = "rbxassetid://2758632692"
  21. songid = 0
  22. addedsize = 0
  23. hipheight = 0
  24.  
  25. plr = owner
  26. mouse = plr:GetMouse()
  27. char = plr.Character
  28. tors = char.Torso
  29. hed = char.Head
  30. la = char["Left Arm"]
  31. ra = char["Right Arm"]
  32. ll = char["Left Leg"]
  33. rl = char["Right Leg"]
  34. hum = char:FindFirstChildOfClass("Humanoid")
  35.  
  36. song = Instance.new("Sound",hed)
  37. song.SoundId = "rbxassetid://" ..songid
  38. song.Volume = 10
  39. song.Looped = true
  40. song:Play()
  41.  
  42. if hum then
  43. hum.HipHeight = 2.075
  44. end
  45.  
  46. for i,v in pairs (char:children()) do
  47. if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("ShirtGraphic") then
  48. v:remove()
  49. end
  50. end
  51.  
  52. function AddMesh(Part, MeshId, TextureId, Scale, Offset)
  53. local Mesh = Instance.new("SpecialMesh",Part);
  54. Mesh.MeshId = MeshId;
  55. Mesh.TextureId = TextureId;
  56. Mesh.Scale = Scale;
  57. Mesh.Offset = Offset;
  58. return Mesh;
  59. end
  60.  
  61. clerp = function(toclerp, cf, number)
  62. local joint = toclerp
  63. joint.C0 = joint.C0:Lerp(cf, number)
  64. end
  65.  
  66. clerp2 = function(toclerp, cf)
  67. local joint = toclerp
  68. joint.C0 = cf
  69. end
  70.  
  71. ezweld = function(p, a, b, cf)
  72. local weld = Instance.new("Weld",p)
  73. weld.Part0 = a
  74. weld.Part1 = b
  75. weld.C0 = cf
  76. return weld
  77. end
  78.  
  79. ra.Transparency = 1
  80. local ra2 = ra:Clone()
  81. ra2.Material = "Sand"
  82. ra2.Massless = true
  83. ra2.CanCollide = false
  84. ra2.Anchored = false
  85. ra2.Parent = char
  86. ra2.Name = "fakera"
  87. ra2.Transparency = 0
  88. local raw = ezweld(char, ra2, ra, CFrame.new(0.3, -0.1, 0) * CFrame.Angles(0, 0, 0))
  89. local ram = AddMesh(ra2, rarmm, rarmt, Vector3.new(0.0875 + addedsize, 0.0875 + addedsize, 0.0875 + addedsize), Vector3.new(0, 0 + hipheight, 0))
  90.  
  91. local lra = ra:Clone()
  92. lra.Material = "Sand"
  93. lra.Massless = true
  94. lra.CanCollide = false
  95. lra.Anchored = false
  96. lra.Parent = char
  97. lra.Name = "lowerra"
  98. lra.Transparency = 0
  99. local lraw = ezweld(char, lra, ra, CFrame.new(-0.15, 0.9, 0.475) * CFrame.Angles(0, math.rad(0), math.rad(0)))
  100. local lram = AddMesh(lra, "rbxassetid://2758848079", "rbxassetid://2758848118", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
  101.  
  102. local rh = ra:Clone()
  103. rh.Material = "Sand"
  104. rh.Massless = true
  105. rh.CanCollide = false
  106. rh.Anchored = false
  107. rh.Parent = char
  108. rh.Name = "rhand"
  109. rh.Transparency = 0
  110. local rhw = ezweld(char, rh, ra, CFrame.new(-0.3, 1.5, 0.9) * CFrame.Angles(0, math.rad(0), math.rad(0)))
  111. local rhm = AddMesh(rh, "rbxassetid://2758766332", "rbxassetid://2758768436", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
  112.  
  113. tors.Material = "Sand"
  114. local torsm = AddMesh(tors, torsm, torst, Vector3.new(0.0865 + addedsize, 0.0865 + addedsize, 0.0865 + addedsize), Vector3.new(0, 0 + hipheight, 0))
  115.  
  116. la.Transparency = 1
  117. local la2 = la:Clone()
  118. la2.Material = "Sand"
  119. la2.Massless = true
  120. la2.CanCollide = false
  121. la2.Anchored = false
  122. la2.Parent = char
  123. la2.Name = "fakela"
  124. la2.Transparency = 0
  125. local law = ezweld(char, la2, la, CFrame.new(-0.3, -0.1, 0) * CFrame.Angles(0, 0, 0))
  126. local lam = AddMesh(la2, larmm, larmt, Vector3.new(0.0875 + addedsize, 0.0875 + addedsize, 0.0875 + addedsize), Vector3.new(0, 0 + hipheight, 0))
  127.  
  128. local lla = la:Clone()
  129. lla.Material = "Sand"
  130. lla.Massless = true
  131. lla.CanCollide = false
  132. lla.Anchored = false
  133. lla.Parent = char
  134. lla.Name = "lowerla"
  135. lla.Transparency = 0
  136. local llaw = ezweld(char, lla, la, CFrame.new(0.15, 0.9, 0.425) * CFrame.Angles(0, math.rad(0), math.rad(0)))
  137. local llam = AddMesh(lla, "rbxassetid://2758768059", "rbxassetid://2758768107", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
  138.  
  139. local lh = la:Clone()
  140. lh.Material = "Sand"
  141. lh.Massless = true
  142. lh.CanCollide = false
  143. lh.Anchored = false
  144. lh.Parent = char
  145. lh.Name = "lhand"
  146. lh.Transparency = 0
  147. local rhw = ezweld(char, lh, la, CFrame.new(0.3, 1.5, 0.9) * CFrame.Angles(0, math.rad(0), math.rad(0)))
  148. local rhm = AddMesh(lh, "rbxassetid://2758768377", "rbxassetid://2758768436", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, 0 + hipheight, 0))
  149.  
  150. local coat = Instance.new("Part",char)
  151. coat.Size = Vector3.new(0.1, 0.1, 0.1)
  152. coat.CanCollide = false
  153. coat.Material = "Sand"
  154. local coatw = ezweld(char, coat, tors, CFrame.Angles(0, 0, 0))
  155. 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))
  156.  
  157. rl.Transparency = 1
  158. local rl2 = rl:Clone()
  159. rl2.Material = "Sand"
  160. rl2.Massless = true
  161. rl2.CanCollide = false
  162. rl2.Anchored = false
  163. rl2.Parent = char
  164. rl2.Name = "fakerl"
  165. rl2.Transparency = 0
  166. local rlw = ezweld(char, rl2, rl, CFrame.new(0.175, 0, 0.15) * CFrame.Angles(0, 0, 0))
  167. local rlm = AddMesh(rl2, rlegm, rlegt, Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.45 + hipheight, 0))
  168.  
  169. local lrl = rl:Clone()
  170. lrl.Material = "Sand"
  171. lrl.Massless = true
  172. lrl.CanCollide = false
  173. lrl.Anchored = false
  174. lrl.Parent = char
  175. lrl.Name = "lowerrl"
  176. lrl.Transparency = 0
  177. local lrlw = ezweld(char, lrl, rl, CFrame.new(-0.1, 1.5, -0.175) * CFrame.Angles(0, 0, 0))
  178. local lrlm = AddMesh(lrl, "rbxassetid://2758762609", "rbxassetid://2758762702", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
  179.  
  180. local rf = rl:Clone()
  181. rf.Material = "Sand"
  182. rf.Massless = true
  183. rf.CanCollide = false
  184. rf.Anchored = false
  185. rf.Parent = char
  186. rf.Name = "rfoot"
  187. rf.Transparency = 0
  188. local rfw = ezweld(char, rf, rl, CFrame.new(-0.2, 2.5, 0.125) * CFrame.Angles(0, 0, 0))
  189. local rfm = AddMesh(rf, "rbxassetid://2758641128", "rbxassetid://2758641177", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
  190.  
  191. ll.Transparency = 1
  192. local ll2 = ll:Clone()
  193. ll2.Material = "Sand"
  194. ll2.Massless = true
  195. ll2.CanCollide = false
  196. ll2.Anchored = false
  197. ll2.Parent = char
  198. ll2.Name = "fakell"
  199. ll2.Transparency = 0
  200. local llw = ezweld(char, ll2, ll, CFrame.new(-0.175, 0, 0.15) * CFrame.Angles(0, 0, 0))
  201. local llm = AddMesh(ll2, llegm, llegt, Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.45 + hipheight, 0))
  202.  
  203. local lll = ll:Clone()
  204. lll.Material = "Sand"
  205. lll.Massless = true
  206. lll.CanCollide = false
  207. lll.Anchored = false
  208. lll.Parent = char
  209. lll.Name = "lowerll"
  210. lll.Transparency = 0
  211. local lllw = ezweld(char, lll, ll, CFrame.new(0.1 - 0.025, 1.5, -0.175) * CFrame.Angles(0, 0, 0))
  212. local lllm = AddMesh(lll, "rbxassetid://2758633653", "rbxassetid://2758633703", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
  213.  
  214. local lf = ll:Clone()
  215. lf.Material = "Sand"
  216. lf.Massless = true
  217. lf.CanCollide = false
  218. lf.Anchored = false
  219. lf.Parent = char
  220. lf.Name = "lfoot"
  221. lf.Transparency = 0
  222. local lfw = ezweld(char, lf, ll, CFrame.new(0.2, 2.5, 0.125) * CFrame.Angles(0, 0, 0))
  223. local lfm = AddMesh(lf, "rbxassetid://2758633944", "rbxassetid://2758633997", Vector3.new(0.0875, 0.0875, 0.0875), Vector3.new(0, -0.35 + hipheight, 0))
  224.  
  225. hed.Transparency = 0.99
  226. hed.Size = Vector3.new(0.1, 0.1, 0.1)
  227. hed.face.Transparency = 1
  228. local hed2 = hed:Clone()
  229. hed2.Material = "Sand"
  230. hed2.Massless = true
  231. hed2.CanCollide = false
  232. hed2.Anchored = false
  233. hed2.Parent = char
  234. hed2.Name = "fakehed"
  235. hed2.Transparency = 0
  236. hed2.face:remove()
  237. local hedw = ezweld(char, hed2, hed, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), 0))
  238. local hedm = AddMesh(hed2, hedm, headt, Vector3.new(0.08675, 0.08675, 0.08675), Vector3.new(0, -0.25 + hipheight, 0))
  239.  
  240. local eyes = hed:Clone()
  241. eyes.Material = "Sand"
  242. eyes.Massless = true
  243. eyes.CanCollide = false
  244. eyes.Anchored = false
  245. eyes.Parent = char
  246. eyes.Name = "eyes"
  247. eyes.Transparency = 0
  248. eyes.face:remove()
  249. local eyew = ezweld(char, eyes, hed, CFrame.new(0.0025, 0.125, 0.1675) * CFrame.Angles(0, math.rad(0), 0))
  250. local eyem = AddMesh(eyes, "rbxassetid://2758855229", "rbxassetid://2758808160", Vector3.new(0.08675, 0.08675, 0.08675), Vector3.new(0, 0 + hipheight, 0))
  251.  
  252. mouse.KeyDown:connect(function(key)
  253. if key == "z" then
  254. songid = 0
  255. song:Play()
  256. end
  257. if key == "x" then
  258. songid = 273516568
  259. song:Play()
  260. end
  261. if key == "c" then
  262. songid = 2296950397
  263. song:Play()
  264. end
  265. end)
  266.  
  267. plr.Chatted:connect(function(msg)
  268. msg=msg:lower()
  269. if msg == "!blue" then
  270. hedm.TextureId = "http://www.roblox.com/asset/?id=4464057115"
  271. end
  272. if msg == "!red" then
  273. hedm.TextureId = headt
  274. end
  275. end)
  276.  
  277. while true do
  278. wait()
  279. song.SoundId = "rbxassetid://" ..songid
  280. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement