Advertisement
sIendytubble

tari

Apr 17th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.96 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code V2 by Mokiros")
  6. local RealPlayer = RealPlayer
  7. script.Parent = RealPlayer.Character
  8.  
  9. --Fake event to make stuff like Mouse.KeyDown work
  10. local Disconnect_Function = function(this)
  11. this[1].Functions[this[2]] = nil
  12. end
  13. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14. local FakeEvent_Metatable = {__index={
  15. Connect = function(this,f)
  16. local i = tostring(math.random(0,10000))
  17. while this.Functions[i] do
  18. i = tostring(math.random(0,10000))
  19. end
  20. this.Functions[i] = f
  21. return setmetatable({this,i},Disconnect_Metatable)
  22. end
  23. }}
  24. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25. local function fakeEvent()
  26. return setmetatable({Functions={}},FakeEvent_Metatable)
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31. FakeMouse.keyUp = FakeMouse.KeyUp
  32. FakeMouse.keyDown = FakeMouse.KeyDown
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function TriggerEvent(self,ev,...)
  42. for _,f in pairs(self[ev].Functions) do
  43. f(...)
  44. end
  45. end
  46. FakeMouse.TriggerEvent = TriggerEvent
  47. UIS.TriggerEvent = TriggerEvent
  48.  
  49. --Client communication
  50. local Event = Instance.new("RemoteEvent")
  51. Event.Name = "UserInput_Event"
  52. Event.OnServerEvent:Connect(function(plr,io)
  53. if plr~=RealPlayer then return end
  54. FakeMouse.Target = io.Target
  55. FakeMouse.Hit = io.Hit
  56. if not io.isMouse then
  57. local b = io.UserInputState == Enum.UserInputState.Begin
  58. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60. end
  61. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76. local Mouse = owner:GetMouse()
  77. local UIS = game:GetService("UserInputService")
  78. local input = function(io,RobloxHandled)
  79. if RobloxHandled then return end
  80. --Since InputObject is a client-side instance, we create and pass table instead
  81. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82. end
  83. UIS.InputBegan:Connect(input)
  84. UIS.InputEnded:Connect(input)
  85.  
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151. rod = game.Players.LocalPlayer
  152. rodscharacter = rod.Character
  153. for i,v in pairs(rodscharacter:GetChildren()) do
  154. if v.ClassName == "Accessory" then
  155. v:remove()
  156. v.Parent = nil
  157. v:Destroy()
  158. end
  159. end
  160. for i,v in pairs(rodscharacter.Head:GetChildren()) do
  161. if v.ClassName == "Decal" then
  162. v:remove()
  163. v.Parent = nil
  164. v:Destroy()
  165. end
  166. end
  167. myhumanoid = rodscharacter:FindFirstChildOfClass("Humanoid")
  168. swing = Instance.new("Animation",rodscharacter)
  169. swing.AnimationId = "rbxassetid://54584713"
  170. rodscharacter.Head.Transparency = 1
  171. rodscharacter.Torso.Transparency = 1
  172. rodscharacter["Left Arm"].Transparency = 1
  173. rodscharacter["Right Arm"].Transparency = 1
  174. rodscharacter["Left Leg"].Transparency = 1
  175. rodscharacter["Right Leg"].Transparency = 1
  176. rodscharacter.Head.Transparency = 1
  177. henryname = Instance.new("BillboardGui",rodscharacter.HumanoidRootPart)
  178. henryname.Size = UDim2.new(1,0,6,0)
  179. henryname.StudsOffset = Vector3.new(0,6,0)
  180. stickminname = Instance.new("TextLabel",henryname)
  181. stickminname.Size = UDim2.new(1,0,1,0)
  182. stickminname.BackgroundTransparency = 1
  183. stickminname.Text = "Tari"
  184. stickminname.TextSize = 45
  185. stickminname.Font = "Cartoon"
  186. stickminname.TextColor3 = Color3.fromRGB(0,0,255)
  187. henry = Instance.new("BillboardGui",rodscharacter.HumanoidRootPart)
  188. henry.Size = UDim2.new(3,0,6,0)
  189. stickmin = Instance.new("ImageLabel",henry)
  190. stickmin.Size = UDim2.new(1,0,1,0)
  191. stickmin.BackgroundTransparency = 1
  192. stickmin.Image = "rbxassetid://3161070846"
  193. hitsound = Instance.new("Sound",rodscharacter["Right Arm"])
  194. hitsound.SoundId = "rbxassetid://4569"
  195. hitsound.Volume = 0
  196. hitsound2 = Instance.new("Sound",rodscharacter["Right Arm"])
  197. hitsound2.SoundId = "rbxassetid://974037023"
  198. hitsound2.Volume = 3
  199. hitsound2.PlaybackSpeed = 0.7
  200. attacking = false
  201. rodscharacter.HumanoidRootPart.Touched:Connect(function(hit)
  202. if attacking == false and not hit.Parent:FindFirstChild("DEADMIDGET") and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  203. local attacked = hit.Parent
  204. attacking = true
  205. local humanoid = attacked:FindFirstChildOfClass("Humanoid")
  206. humanoid.WalkSpeed = 0
  207. myhumanoid.WalkSpeed = 0
  208. hit = myhumanoid:LoadAnimation(swing)
  209. hit:Play()
  210. hitsound:Play()
  211. wait(2)
  212. hitsound2:Play()
  213. for i,v in pairs(attacked:GetChildren()) do
  214. if v.ClassName == "Part" then
  215. block = Instance.new("Part",attacked)
  216. block.Name = v.Name.." Broken"
  217. block.Size = Vector3.new(1,1,1)
  218. block.BrickColor = v.BrickColor
  219. block.CFrame = v.CFrame
  220. sound = Instance.new("Sound",block)
  221. sound.SoundId = "rbxassetid://179285891"
  222. sound.Volume = 10
  223. sound:Play()
  224. sound.Ended:Connect(function()
  225. sound:Destroy()
  226. end)
  227. v:Destroy()
  228. end
  229. end
  230. coroutine.resume(coroutine.create(function()
  231. target = attacked
  232. target.Archivable = true
  233. c = target:Clone()
  234. c.Parent = workspace
  235. local parts = c:GetChildren()
  236. for _,p in pairs(parts) do
  237. if p.ClassName == "Part" then
  238. p.Velocity = Vector3.new(p.Velocity.X + (rodscharacter.Head.CFrame.lookVector.X * 18), p.Velocity.Y + (rodscharacter.Head.CFrame.lookVector.Y * 18) + 8, p.Velocity.Z + (rodscharacter.Head.CFrame.lookVector.Z * 18))
  239. end
  240. end
  241. target:Destroy()
  242. c.Humanoid.BreakJointsOnDeath=false
  243. c.Humanoid.Name = "DEADMIDGET"
  244. c:FindFirstChildOfClass("Humanoid").PlatformStand = true
  245. leftleg = Instance.new("Part",c["Left Leg"])
  246. leftleg.Shape = "Cylinder"
  247. leftleg.Transparency = 1
  248. leftleg.Size=Vector3.new(1.4,1,1)
  249. leftlegweld = Instance.new("Weld",leftleg)
  250. leftlegweld.Part0=c["Left Leg"]
  251. leftlegweld.Part1=leftleg
  252. leftlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  253. rightleg = Instance.new("Part",c["Right Leg"])
  254. rightleg.Shape = "Cylinder"
  255. rightleg.Size=Vector3.new(1.4,1,1)
  256. rightleg.Transparency = 1
  257. rightlegweld = Instance.new("Weld",leftleg)
  258. rightlegweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  259. rightlegweld.Part0=c["Right Leg"]
  260. rightlegweld.Part1=rightleg
  261. rightarm = Instance.new("Part",c["Right Arm"])
  262. rightarm.Shape = "Cylinder"
  263. rightarm.Size=Vector3.new(1.4,1,1)
  264. rightarm.Transparency = 1
  265. rightarmweld = Instance.new("Weld",rightarm)
  266. rightarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  267. rightarmweld.Part0=c["Right Arm"]
  268. rightarmweld.Part1=rightarm
  269. leftarm = Instance.new("Part",c["Left Arm"])
  270. leftarm.Shape = "Cylinder"
  271. leftarm.Size=Vector3.new(1.4,1,1)
  272. leftarm.Transparency = 1
  273. leftarmweld = Instance.new("Weld",leftarm)
  274. leftarmweld.C0=CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  275. leftarmweld.Part0=c["Left Arm"]
  276. leftarmweld.Part1=leftarm
  277. head = Instance.new("Part",c.Head)
  278. head.Size=Vector3.new(1.4,1,1)
  279. head.Transparency = 1
  280. headweld = Instance.new("Weld",head)
  281. headweld.Part0=c.Head
  282. headweld.Part1=head
  283. player = c
  284. local RealTorso = player.Torso
  285. local RealHead = player.Head
  286. local RealLeftleg = player["Left Leg"]
  287. local RealRightleg = player["Right Leg"]
  288. local RealLeftArm = player["Left Arm"]
  289. local RealRightArm = player["Right Arm"]
  290. local rightarmglue = Instance.new("Glue", RealTorso)
  291. rightarmglue.Part0 = RealTorso
  292. rightarmglue.Part1 = RealRightArm
  293. rightarmglue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  294. rightarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  295. local leftarmglue = Instance.new("Glue", RealTorso)
  296. leftarmglue.Part0 = RealTorso
  297. leftarmglue.Part1 = RealLeftArm
  298. leftarmglue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  299. leftarmglue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  300. local leftlegglue = Instance.new("Glue", RealTorso)
  301. leftlegglue.Part0 = RealTorso
  302. leftlegglue.Part1 = RealLeftleg
  303. leftlegglue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  304. leftlegglue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  305. local rightlegglue = Instance.new("Glue", RealTorso)
  306. rightlegglue.Part0 = RealTorso
  307. rightlegglue.Part1 = RealRightleg
  308. rightlegglue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  309. rightlegglue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  310.  
  311. RealTorso["Left Hip"]:Destroy()
  312. RealTorso["Right Hip"]:Destroy()
  313. RealTorso["Left Shoulder"]:Destroy()
  314. RealTorso["Left Hip"]:Destroy()
  315. RealTorso["Right Hip"]:Destroy()
  316. RealTorso["Left Shoulder"]:Destroy()
  317. RealTorso["Left Hip"]:Destroy()
  318. RealTorso["Right Hip"]:Destroy()
  319. RealTorso["Left Shoulder"]:Destroy()
  320. RealTorso["Left Hip"]:Destroy()
  321. RealTorso["Right Hip"]:Destroy()
  322. RealTorso["Left Shoulder"]:Destroy()
  323. RealTorso.Neck:Destroy()
  324. player.Humanoid.BreakJointsOnDeath = false
  325. RealTorso.CanCollide = false
  326. end))
  327. myhumanoid.WalkSpeed = 16
  328. wait(0.1)
  329. hit:Stop()
  330. attacking = false
  331. end
  332. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement