Advertisement
griminz

e

Dec 6th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.32 KB | None | 0 0
  1. local toggleTag = true
  2. local bilguit = Instance.new("BillboardGui", hed)
  3. bilguit.Adornee = nil
  4. bilguit.Name = "ModeName"
  5. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  6. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  7. local modet = Instance.new("TextLabel", bilguit)
  8. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  9. modet.FontSize = "Size8"
  10. modet.TextScaled = true
  11. modet.TextTransparency = 0
  12. modet.BackgroundTransparency = 1
  13. modet.TextTransparency = 0
  14. modet.TextStrokeTransparency = 0
  15. modet.Font = "Code"
  16. modet.TextStrokeColor3 = Color3.new(0,0,0)
  17. modet.TextColor3 = Color3.new(1,1,1)
  18. modet.Text = "maybe works"
  19. end
  20. end
  21. end)
  22. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  23. local Player,game,owner = owner,game
  24. local RealPlayer = Player
  25. do
  26. print("FE Compatibility code by Mokiros")
  27. local rp = RealPlayer
  28. script.Parent = rp.Character
  29.  
  30. --RemoteEvent for communicating
  31. local Event = Instance.new("RemoteEvent")
  32. Event.Name = "UserInput_Event"
  33.  
  34. --Fake event to make stuff like Mouse.KeyDown work
  35. local function fakeEvent()
  36. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  37. t.connect = t.Connect
  38. return t
  39. end
  40.  
  41. --Creating fake input objects with fake variables
  42. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  43. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  44. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  45. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  46. end}
  47. --Merged 2 functions into one by checking amount of arguments
  48. CAS.UnbindAction = CAS.BindAction
  49.  
  50. --This function will trigger the events that have been :Connect()'ed
  51. local function te(self,ev,...)
  52. local t = m[ev]
  53. if t and t._fakeEvent then
  54. for _,f in pairs(t.Functions) do
  55. f(...)
  56. end
  57. end
  58. end
  59. m.TrigEvent = te
  60. UIS.TrigEvent = te
  61.  
  62. Event.OnServerEvent:Connect(function(plr,io)
  63. if plr~=rp then return end
  64. m.Target = io.Target
  65. m.Hit = io.Hit
  66. if not io.isMouse then
  67. local b = io.UserInputState == Enum.UserInputState.Begin
  68. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  69. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  70. end
  71. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  72. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  73. end
  74. for _,t in pairs(CAS.Actions) do
  75. for _,k in pairs(t.Keys) do
  76. if k==io.KeyCode then
  77. t.Function(t.Name,io.UserInputState,io)
  78. end
  79. end
  80. end
  81. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  82. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  83. end
  84. end)
  85. Event.Parent = NLS([==[
  86. local Player = game:GetService("Players").LocalPlayer
  87. local Event = script:WaitForChild("UserInput_Event")
  88. local Mouse = Player:GetMouse()
  89. local UIS = game:GetService("UserInputService")
  90. local input = function(io,a)
  91. if a then return end
  92. --Since InputObject is a client-side instance, we create and pass table instead
  93. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  94. end
  95. UIS.InputBegan:Connect(input)
  96. UIS.InputEnded:Connect(input)
  97. local h,t
  98. --Give the server mouse data 30 times every second, but only if the values changed
  99. --If player is not moving their mouse, client won't fire events
  100. while wait(1/30) do
  101. if h~=Mouse.Hit or t~=Mouse.Target then
  102. h,t=Mouse.Hit,Mouse.Target
  103. Event:FireServer({isMouse=true,Target=t,Hit=h})
  104. end
  105. end]==],Player.Character)
  106.  
  107. ----Sandboxed game object that allows the usage of client-side methods and services
  108. --Real game object
  109. local _rg = game
  110.  
  111. --Metatable for fake service
  112. local fsmt = {
  113. __index = function(self,k)
  114. local s = rawget(self,"_RealService")
  115. if s then
  116. return typeof(s[k])=="function"
  117. and function(_,...)return s[k](s,...)end or s[k]
  118. end
  119. end,
  120. __newindex = function(self,k,v)
  121. local s = rawget(self,"_RealService")
  122. if s then s[k]=v end
  123. end
  124. }
  125. local function FakeService(t,RealService)
  126. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  127. return setmetatable(t,fsmt)
  128. end
  129.  
  130. --Fake game object
  131. local g = {
  132. GetService = function(self,s)
  133. return rawget(self,s) or _rg:GetService(s)
  134. end,
  135. Players = FakeService({
  136. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  137. },"Players"),
  138. UserInputService = FakeService(UIS,"UserInputService"),
  139. ContextActionService = FakeService(CAS,"ContextActionService"),
  140. RunService = FakeService({
  141. _btrs = {},
  142. RenderStepped = _rg:GetService("RunService").Heartbeat,
  143. BindToRenderStep = function(self,name,_,fun)
  144. self._btrs[name] = self.Heartbeat:Connect(fun)
  145. end,
  146. UnbindFromRenderStep = function(self,name)
  147. self._btrs[name]:Disconnect()
  148. end,
  149. },"RunService")
  150. }
  151. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  152. g.service = g.GetService
  153. FakeService(g,game)
  154. --Changing owner to fake player object to support owner:GetMouse()
  155. game,owner = g,g.Players.LocalPlayer
  156. end
  157. script.Parent = workspace.CurrentCamera
  158. local plr = game:GetService("Players").LocalPlayer
  159.  
  160. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  161. tool.Grip = CFrame.new(0,-0.2,-1.6) * CFrame.Angles(math.rad(100),math.rad(180),math.rad(0))
  162. tool.Name = "bluE"
  163.  
  164. local part = Instance.new("Part",tool)
  165. part.Name = "Handle"
  166. part.Size = Vector3.new(4,6,4)
  167. part.TopSurface = "Smooth"
  168. part.BottomSurface = "Smooth"
  169. part.CanCollide = false
  170. part:BreakJoints()
  171.  
  172. local mesh = Instance.new("SpecialMesh",part)
  173. mesh.MeshId = "rbxassetid://24342877" --mesh.MeshId = "rbxassetid://132920499"
  174. mesh.TextureId = "rbxassetid://139521211" --"http://www.roblox.com/asset/?id=134479421"
  175. mesh.Scale = Vector3.new(2,2,2)
  176.  
  177. local sound = Instance.new("Sound",part)
  178. sound.SoundId = "rbxassetid://148862502"
  179. sound.Volume = 10
  180.  
  181. local sound2 = Instance.new("Sound",part)
  182. sound2.SoundId = "rbxassetid://280667448"
  183. sound2.Volume = 5
  184.  
  185. local sound3 = Instance.new("Sound",part)
  186. sound3.SoundId = "rbxassetid://198973822"
  187. sound3.Volume = 10
  188.  
  189. local sound4 = Instance.new("Sound",part)
  190. sound4.SoundId = "rbxassetid://287802791"
  191. sound4.Volume = 10
  192.  
  193. local sound5 = Instance.new("Sound",part)
  194. sound5.SoundId = "rbxassetid://130932305"
  195. sound5.Volume = 10
  196.  
  197. local sound6 = Instance.new("Sound",part)
  198. sound6.SoundId = "rbxassetid://287802791"
  199. sound6.Volume = 10
  200. sound6.TimePosition = 2
  201.  
  202. function firstHum(target)
  203. for i,v in pairs(target:GetChildren()) do
  204. if v:IsA("Humanoid") then
  205. return v
  206. end
  207. end
  208. return nil
  209. end
  210.  
  211. local slap = false
  212. local cd = false
  213.  
  214. plr:GetMouse().Button1Down:connect(function()
  215. if tool.Parent == plr.Character then
  216. if slap == false then
  217. slap = true
  218. sound2:Play()
  219. local str = Instance.new("StringValue")
  220. str.Name = "toolanim"
  221. str.Value = "Slash"
  222. str.Parent = tool
  223. wait(1)
  224. slap = false
  225. end
  226. end
  227. end)
  228.  
  229. part.Touched:connect(function(hit)
  230. if slap == true then
  231. if cd == false then
  232. if not hit:IsDescendantOf(plr.Character) then
  233. if hit.Parent:IsA("Model") then
  234. local fhum = firstHum(hit.Parent)
  235. if fhum then
  236. cd = true
  237. fhum.PlatformStand = true
  238. sound:Play()
  239. local con1
  240. con1 = game:GetService("RunService").Heartbeat:connect(function()
  241. fhum.PlatformStand = true
  242. end)
  243. wait(0.1)
  244. local vel = Instance.new("BodyVelocity",hit)
  245. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  246. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  247. wait(1)
  248. cd = false
  249. vel:Destroy()
  250. local vel2 = Instance.new("BodyVelocity",hit)
  251. vel2.Velocity = Vector3.new(0,12.5,0)
  252. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  253. local p2 = Instance.new("Part",hit)
  254. p2.Anchored = true
  255. p2.Transparency = 0.6
  256. p2.CanCollide = false
  257. p2.Size = Vector3.new(0.2,0.2,0.2)
  258. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  259. p2.BrickColor = BrickColor.new("New Yeller")
  260. p2.Material = "Neon"
  261. local m2 = Instance.new("CylinderMesh",p2)
  262. m2.Scale = Vector3.new(60,10000,60)
  263. local scln = sound3:Clone()
  264. scln.Parent = hit
  265. scln:Play()
  266. local con2
  267. con2 = game:GetService("RunService").Heartbeat:connect(function()
  268. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  269. end)
  270. wait(7)
  271. vel2.Velocity = Vector3.new(0,0,0)
  272. wait(0.5)
  273. scln:Stop()
  274. local scln3 = sound5:Clone()
  275. scln3.Parent = hit
  276. scln3:Play()
  277. wait(1)
  278. local bav = Instance.new("BodyAngularVelocity",hit)
  279. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  280. vel2.Velocity = Vector3.new(0,-250,0)
  281. p2.BrickColor = BrickColor.new("Really red")
  282. local scln6 = sound6:Clone()
  283. scln6.Parent = hit
  284. scln6:Play()
  285. local continue = false
  286. local htc
  287. htc = hit.Touched:connect(function(hitp)
  288. if not hitp:IsDescendantOf(hit.Parent) then
  289. continue = true
  290. scln6:Stop()
  291. vel2:Destroy()
  292. con2:Disconnect()
  293. con1:Disconnect()
  294. htc:Disconnect()
  295. p2:Destroy()
  296. end
  297. end)
  298. repeat wait() until continue == true
  299. local ctab = {}
  300. for i=1,4 do
  301. local p = Instance.new("Part",hit)
  302. p.Size = Vector3.new(30,30,30)
  303. p.Anchored = true
  304. p.CanCollide = false
  305. p.TopSurface = "Smooth"
  306. p.BottomSurface = "Smooth"
  307. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  308. p.CFrame = hit.CFrame
  309. local con
  310. con = game:GetService("RunService").Heartbeat:connect(function()
  311. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  312. p.Transparency = p.Transparency + 0.01
  313. if p.Transparency >= 1 then
  314. con:Disconnect()
  315. end
  316. end)
  317. table.insert(ctab,con)
  318. end
  319. Instance.new("Explosion",workspace).Position = hit.Position
  320. local scln2 = sound4:Clone()
  321. scln2.Parent = hit
  322. scln2:Play()
  323. vel2:Destroy()
  324. hit.Parent:BreakJoints()
  325. repeat wait() until not hit:IsDescendantOf(workspace)
  326. con2:Disconnect()
  327.  
  328. local sound = Instance.new("Sound",part)
  329. sound.SoundId = "rbxassetid://488472970"
  330. sound.Volume = 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement