Advertisement
HenloMyDude

thanosisntbackguys

Jul 13th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.51 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142.  
  143.  
  144. New = function(Object, Parent, Name, Data)
  145. local Object = Instance.new(Object)
  146. for Index, Value in pairs(Data or {}) do
  147. Object[Index] = Value
  148. end
  149. Object.Parent = Parent
  150. Object.Name = Name
  151. return Object
  152. end
  153.  
  154. dmg = 0
  155.  
  156. char = owner.Character
  157. hum = char.Humanoid
  158. Character = char
  159. mouse = owner:GetMouse()
  160.  
  161. id = Instance.new("Sound",char.Head)
  162. id.Playing = true
  163. id.SoundId = "rbxassetid://2651502125"
  164.  
  165. hum.BodyDepthScale.Value = 1.5
  166. hum.BodyWidthScale.Value = 1.5
  167. hum.BodyHeightScale.Value = 1.5
  168. hum.HeadScale.Value = 1.5
  169.  
  170. leftslash = hum:LoadAnimation(New("Animation",char,"Swing",{AnimationId = "rbxassetid://2524287767"}))
  171. spawned = hum:LoadAnimation(New("Animation",char,"Swing",{AnimationId = "rbxassetid://2524329075"}))
  172. spawned:Play()
  173.  
  174. for i,v in pairs(Character:children()) do
  175. if v:IsA("Hat") then
  176. v:Destroy()
  177. end
  178. end
  179. for i,v in pairs(Character:children()) do
  180. if v:IsA("Accessory") then
  181. v:Destroy()
  182. end
  183. end
  184. for i,v in pairs(Character:children()) do
  185. if v:IsA("Hair") then
  186. v:Destroy()
  187. end
  188. end
  189. for i,v in pairs(Character:children()) do
  190. if v:IsA("Shirt") then
  191. v:Destroy()
  192. end
  193. end
  194. for i,v in pairs(Character:children()) do
  195. if v:IsA("Pants") then
  196. v:Destroy()
  197. end
  198. end
  199. for i,v in pairs(Character:children()) do
  200. if v:IsA("Graphic Shirt") then
  201. v:Destroy()
  202. end
  203. end
  204. for i,v in pairs(Character:children()) do
  205. if v:IsA("GraphicShirt") then
  206. v:Destroy()
  207. end
  208. end
  209. for _,v in pairs(Character:children()) do
  210. if v:IsA("Shirt") then
  211. v.ShirtTemplate = "rbxassetid://0"
  212. elseif v:IsA("Pants") then
  213. v.PantsTemplate = "rbxassetid://0"
  214. elseif v:IsA("ShirtGraphic") then
  215. v:Remove()
  216. wait(.1)
  217. Torso.roblox:Remove()
  218. elseif v:IsA("Accessory") then
  219. v:Remove()
  220. end
  221. if v:IsA("Part") then v.BrickColor = BrickColor.new("Lilac")
  222. end
  223. if v:IsA("MeshPart") then v.BrickColor = BrickColor.new("Lilac")
  224. end
  225. end
  226.  
  227. shirt = "rbxassetid://593515265"
  228. pants = "rbxassetid://1881920856"
  229.  
  230. knuckles1 = Instance.new("Shirt")
  231. knuckles1.Parent = char
  232. knuckles1.ShirtTemplate = shirt
  233. knuckles2 = Instance.new("Pants")
  234. knuckles2.Parent = char
  235. knuckles2.PantsTemplate = pants
  236.  
  237. function BOAT()
  238. local boat = Instance.new("Part",char)
  239. boat.Size = Vector3.new(4.96,3.323,14.663)
  240. boat.CanCollide = true
  241. boat.Position = char.UpperTorso.Position + Vector3.new(0, 5, 0)
  242. boat.Velocity = Vector3.new(0, 0, 0)
  243. boat.Orientation = char.LowerTorso.Orientation
  244. boat.Touched:connect(function(hit)
  245. for _,v in pairs (hit.Parent:children()) do
  246. if hit.Parent.Name == owner.Name then
  247.  
  248. else
  249. if v:IsA("Humanoid") then
  250. v.Health = v.Health - 10
  251. end
  252. end
  253. end
  254. end)
  255. local mesh = Instance.new("SpecialMesh",boat)
  256. mesh.MeshId = "rbxassetid://636427580"
  257. local bv = Instance.new("BodyVelocity",boat)
  258. bv.Parent = boat
  259. bv.Velocity = char.LowerTorso.Orientation * 150
  260. wait(.5)
  261. boat.CanCollide = false
  262. end
  263.  
  264. mouse.Button1Down:connect(function()
  265. BOAT()
  266. end)
  267.  
  268. slapping = false
  269.  
  270. mouse.KeyDown:connect(function(k)
  271. k=k:lower()
  272. if k == 'r' then
  273. slapping = true
  274. dmg = 25
  275. leftslash:Play()
  276. wait(.7)
  277. slapping = false
  278. dmg = 0
  279. end
  280. end)
  281.  
  282. char.RightHand.Touched:connect(function(hit)
  283. if hit.Parent.Name == owner.Name then else
  284. for _,v in pairs (hit.Parent:children()) do if v:IsA("Humanoid") then v.Health = v.Health - dmg end end end
  285. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement