Advertisement
lafur

Untitled

Sep 16th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.70 KB | None | 0 0
  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,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 --[[HAH YOUR AN IDIOT]]--
  6. ----[[[V1.0]]]----
  7. ---[[LOCAL SCRIPT MADE BY EVILDARKSWORD123]]---
  8. --[[Before running WEAR PANTS AND A SHIRT OR IT WONT WORK]]--
  9. -----------------------------------------------------------------------------------
  10. Player = game:GetService("Players").LocalPlayer
  11. player = Player
  12. Lighting = game:GetService("Lighting")
  13. lighting = Lighting
  14. Name = Player.Name
  15. name = Name
  16. Mouse = Player:GetMouse()
  17. mouse = Mouse
  18. char = Player.Character
  19. Char = char
  20. Sm = "Smooth"
  21. Smp = "SmoothPlastic"
  22. Head = char.Head
  23. head = Head
  24. Color = Color3.new(255,255,255)
  25. Slash = Instance.new("Sound", Head)
  26. Slash.SoundId = "http://www.roblox.com/asset/?id=146163522"
  27. Slash.Volume = 1
  28. Slash.Looped = false
  29.  
  30.  
  31.  
  32. HA = Instance.new("Sound", Head)
  33. HA.SoundId = "http://www.roblox.com/asset/?id=131490087"
  34. HA.Volume = 1
  35. HA.Looped = false
  36.  
  37. local Punch = Instance.new("Animation", char)
  38. Punch.AnimationId = "http://www.roblox.com/asset/?id=158398316"
  39. Punch.Name = "Punch"
  40.  
  41. local Flip = Instance.new("Animation", char)
  42. Flip.AnimationId = "http://www.roblox.com/asset/?id=147842537"
  43. Flip.Name = "Flip"
  44.  
  45. function onTouched(part)
  46. local h = part.Parent:findFirstChild("Humanoid")
  47. if h~=nil then
  48. Instance.new("Smoke",h.Parent.Head)
  49. Instance.new("Fire",h.Parent.Head)
  50. Instance.new("Sparkles",h.Parent.Head)
  51.  
  52. local s = Instance.new("SelectionBox")
  53. s.Parent = h.Parent.Head
  54. s.Adornee = h.Parent.Head
  55. s.Color = BrickColor.Random()
  56.  
  57. local s = Instance.new("SelectionBox")
  58. s.Parent = h.Parent.Torso
  59. s.Adornee = h.Parent.Torso
  60. s.Color = BrickColor.Random()
  61.  
  62.  
  63. wait(0.5)
  64. HA:Play()
  65. h.Parent:BreakJoints()
  66. end
  67. end
  68.  
  69. char["Right Arm"].Touched:connect(onTouched)
  70.  
  71. char["Torso"].Touched:connect(onTouched)
  72.  
  73.  
  74.  
  75. function Main()
  76. char.Humanoid.MaxHealth = math.huge
  77. Head.face.Texture = "http://www.roblox.com/asset/?id=131104482"
  78. char.Torso.roblox:remove()
  79. char.Humanoid.WalkSpeed = 28
  80. char.Pants:remove()
  81. char.Shirt:remove()
  82. end
  83.  
  84. function Morph()
  85. local sm = Instance.new("Smoke")
  86. sm.Parent = char.Torso
  87. sm.Color = Color3.new(0, 0, 0)
  88. sm.Opacity = 3
  89. sm.Size = 3
  90.  
  91. local f = Instance.new("Fire",char.Torso)
  92.  
  93. local s = Instance.new("Sparkles",char.Torso)
  94.  
  95. wait(3)
  96.  
  97. sm.Parent = lighting
  98. f.Parent = lighting
  99. s.Parent = lighting
  100.  
  101. wait(0.1)
  102. local BillboardGui = Instance.new("BillboardGui",Head)
  103. BillboardGui.Size = UDim2.new(8,0,7,0)
  104. BillboardGui.StudsOffset = Vector3.new(0,2.89,0)
  105. local TextLabel = Instance.new("TextLabel", BillboardGui)
  106. TextLabel.Text = "WHY IS CHU LOOKING AT MEH!"
  107. TextLabel.Size = UDim2.new(1,0,1,0)
  108. TextLabel.BackgroundTransparency = 1
  109. TextLabel.TextColor = BrickColor.new(Color)
  110. TextLabel.Font = "Arial"
  111. TextLabel.FontSize = "Size36"
  112. TextLabel.TextStrokeTransparency = 0
  113. TextLabel.Rotation = 1
  114. end
  115. function po()
  116. char.Head.BrickColor = BrickColor.new("Institutional white")
  117. char.Head.Transparency = 0.35
  118. char.Torso.BrickColor = BrickColor.new("Really black")
  119. char.Torso.Transparency = 0.35
  120. char["Left Arm"].BrickColor = BrickColor.new("Really black")
  121. char["Left Arm"].Transparency = 0.35
  122. char["Right Arm"].BrickColor = BrickColor.new("Really black")
  123. char["Right Arm"].Transparency = 0.35
  124. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  125. char["Left Leg"].Transparency = 0.35
  126. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  127. char["Right Leg"].Transparency = 0.35
  128. end
  129. Morph()
  130. Main()
  131. po()
  132. mouse.KeyDown:connect(function(key) local key=key:lower()
  133. if key=="q" then
  134. local vCharacter = char
  135. local hum = vCharacter:findFirstChild("Humanoid")
  136. blah2 = hum:LoadAnimation(char.Flip)
  137. blah2:Play()
  138. Slash:Play()
  139. char.Torso.CFrame = char.Torso.CFrame * CFrame.new(-2,2.5,-2)
  140. end
  141. end)
  142.  
  143. mouse.KeyDown:connect(function(key) local key=key:lower()
  144. if key == "e" then
  145. local vCharacter = char
  146. local hum = vCharacter:findFirstChild("Humanoid")
  147. blah2 = hum:LoadAnimation(char.Punch)
  148. blah2:Play()
  149. Slash:Play()
  150. char.Torso.CFrame = char.Torso.CFrame * CFrame.new(0,-10,0)
  151. end
  152. end)
  153.  
  154. mouse.KeyDown:connect(function(key) local key=key:lower()
  155. if key == "j" then
  156. local vCharacter = char
  157. char.Torso.CFrame = char.Torso.CFrame * CFrame.new(0,80,0)
  158. end
  159. end)
  160. --[[YOU ARE AN IDIOT A SCRIPT BY EVILDARKSWORD123]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement