Advertisement
lafur

Untitled

Feb 16th, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end iz = (game.Players.LocalPlayer.Name)
  6.  
  7. is = (game.Players.LocalPlayer.Character)
  8.  
  9. local a = Instance.new("Sound")
  10. a.Name = "Sound"
  11. a.SoundId = "http://www.roblox.com/asset/?id=366944018"
  12. a.Volume = 1
  13. a.Pitch = 1
  14. a.Looped = true
  15. a.archivable = false
  16. a.Parent = game.Workspace
  17. a:play()
  18.  
  19. local Player = game.Players.localPlayer
  20. local Character = Player.Character
  21. local Humanoid = Character.Humanoid
  22. local Mouse = Player:GetMouse()
  23. local LeftArm = Character["Left Arm"]
  24. local RightArm = Character["Right Arm"]
  25. local LeftLeg = Character["Left Leg"]
  26. local RightLeg = Character["Right Leg"]
  27. local Head = Character.Head
  28. local Torso = Character.Torso
  29. local Camera = game.Workspace.CurrentCamera
  30. local RootPart = Character.HumanoidRootPart
  31. local RootJoint = RootPart.RootJoint
  32. local attack = false
  33. local Anim = 'Idle'
  34. local attacktype = 1
  35. local delays = false
  36. local play = true
  37. local targetted = nil
  38. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  39. local velocity = RootPart.Velocity.y
  40. local sine = 0
  41. local change = 1
  42. local doe = 0
  43. local Create = LoadLibrary("RbxUtility").Create
  44. Humanoid.WalkSpeed = 50
  45. local m = Create("Model"){
  46. Parent = Character,
  47. Name = "WeaponModel",
  48. }
  49. local Orin = "http://www.roblox.com/asset/?id=275347097"
  50. Head.face.Texture = Orin
  51. spawn(function()
  52. while wait() do
  53. Head.BrickColor = BrickColor.new("Magenta")
  54. RightArm.BrickColor = BrickColor.new("Magenta")
  55. LeftArm.BrickColor = BrickColor.new("Magenta")
  56. Torso.BrickColor = BrickColor.new("Magenta")
  57. RightLeg.BrickColor = BrickColor.new("Magenta")
  58. LeftLeg.BrickColor = BrickColor.new("Magenta")
  59. end
  60. end)
  61. for i,v in pairs(Character:children()) do
  62. if v:IsA("Hat") then
  63. v:Destroy()
  64. end
  65. end
  66. for i,v in pairs(Character:children()) do
  67. if v:IsA("Accessory") then
  68. v:Destroy()
  69. end
  70. end
  71. for i,v in pairs(Character:children()) do
  72. if v:IsA("Hair") then
  73. v:Destroy()
  74. end
  75. end
  76. for i,v in pairs(Character:children()) do
  77. if v:IsA("Shirt") then
  78. v:Destroy()
  79. end
  80. end
  81. for i,v in pairs(Character:children()) do
  82. if v:IsA("Pants") then
  83. v:Destroy()
  84. end
  85. end
  86. for i,v in pairs(Character:children()) do
  87. if v:IsA("Graphic Shirt") then
  88. v:Destroy()
  89. end
  90. end
  91.  
  92. local hair = Instance.new("Part",Character)
  93. hair.Name = "Hair"
  94. hair.CanCollide = false
  95. hair.Size = Vector3.new(2, 0.8, 2)
  96. hair.BrickColor = BrickColor.new("Magenta")
  97. local hairmesh = Instance.new("SpecialMesh",hair)
  98. hairmesh.MeshId = "rbxassetid://462101488"
  99. hairmesh.TextureId = ""
  100. hairmesh.Scale = Vector3.new(1, 1, 1)
  101. hairmesh.VertexColor = Vector3.new(1, 1, 1)
  102. local hairweld = Instance.new("Weld",hair)
  103. hairweld.Part0 = Head
  104. hairweld.Part1 = hair
  105. hairweld.C0 = CFrame.new(0,1,0)
  106.  
  107. is.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/Asset?ID=252557606'
  108.  
  109. taut = Instance.new('Sound')
  110. taut.SoundId = 'http://www.roblox.com/asset/?id=366944018' --366944018
  111. taut.Looped = true
  112. taut.Parent = is.Torso
  113. taut.Volume = 1
  114.  
  115. function onTouch(part)
  116. local humanoid = part.Parent:findFirstChild("Humanoid")
  117. sound1 = Instance.new('Sound')
  118. sound1.SoundId = 'http://www.roblox.com/asset/?id=316115931'
  119. sound1.Looped = false
  120. sound1.Parent = is.Torso
  121. sound1:Play()
  122. if (humanoid ~=nil) then
  123. humanoid.Health = 0
  124. end
  125. end
  126.  
  127. is.Torso.Touched:connect(onTouch)
  128.  
  129. while true do
  130. wait()
  131. game.Workspace[iz].Head.BrickColor = BrickColor.new('Magenta')
  132. game.Workspace[iz]['Right Leg'].BrickColor = BrickColor.new('Magenta')
  133. game.Workspace[iz]['Left Leg'].BrickColor = BrickColor.new('Magenta')
  134. game.Workspace[iz]['Right Arm'].BrickColor = BrickColor.new('Magenta')
  135. game.Workspace[iz]['Left Arm'].BrickColor = BrickColor.new('Magenta')
  136. game.Workspace[iz].Torso.BrickColor = BrickColor.new('Magenta')
  137. game.Workspace[iz].Head.face.Texture = 'http://www.roblox.com/asset/?id=275347097'
  138. end
  139.  
  140. while true do
  141.  
  142. wait(0.5)
  143. game.Lighting.TimeOfDay = "01:11:11"
  144.  
  145. end
  146.  
  147. print("teletubbies are hot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement