Advertisement
Createok

Untitled

Feb 3rd, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. script.Parent = workspace.CurrentCamera
  88. local plr = game:GetService("Players").wrrrryyyyyyyyyyyyyyy
  89.  
  90. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  91. tool.Grip = CFrame.new(0,-0.2,-1.6) * CFrame.Angles(math.rad(100),math.rad(180),math.rad(0))
  92. tool.Name = "fucking meme"
  93.  
  94. local part = Instance.new("Part",tool)
  95. part.Name = "Handle"
  96. part.Size = Vector3.new(4,6,4)
  97. part.TopSurface = "Smooth"
  98. part.BottomSurface = "Smooth"
  99. part.CanCollide = false
  100. part:BreakJoints()
  101.  
  102. local mesh = Instance.new("SpecialMesh",part)
  103. mesh.MeshId = "rbxassetid://24342877" --mesh.MeshId = "rbxassetid://132920499"
  104. mesh.TextureId = "rbxassetid://139521211" --"http://www.roblox.com/asset/?id=134479421"
  105. mesh.Scale = Vector3.new(2,2,2)
  106.  
  107. local sound = Instance.new("Sound",part)
  108. sound.SoundId = "rbxassetid://2791831469"
  109. sound.Volume = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  110.  
  111.  
  112. function firstHum(target)
  113. for i,v in pairs(target:GetChildren()) do
  114. if v:IsA("Humanoid") then
  115. return v
  116. end
  117. end
  118. return nil
  119. end
  120.  
  121. local slap = false
  122. local cd = false
  123.  
  124. if tool.Parent == plr.Character then
  125. if slap == false then
  126. slap = true
  127. sound2:Play()
  128. local str = Instance.new("StringValue")
  129. str.Name = "toolanim"
  130. str.Value = "Slash"
  131. str.Parent = tool
  132. wait(1)
  133. slap = false
  134. end
  135. end
  136. end)
  137.  
  138. part.Touched:connect(function(hit)
  139. if slap == true then
  140. if cd == false then
  141. if not hit:IsDescendantOf(plr.Character) then
  142. if hit.Parent:IsA("Model") then
  143. local fhum = firstHum(hit.Parent)
  144. if fhum then
  145. cd = true
  146. fhum.PlatformStand = true
  147. sound:Play()
  148. local con1
  149. con1 = game:GetService("RunService").Heartbeat:connect(function()
  150. fhum.PlatformStand = true
  151. end)
  152. wait(0.1)
  153. local vel = Instance.new("BodyVelocity",hit)
  154. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  155. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  156. wait(1)
  157. cd = false
  158. vel:Destroy()
  159. local vel2 = Instance.new("BodyVelocity",hit)
  160. vel2.Velocity = Vector3.new(0,12.5,0)
  161. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  162. local p2 = Instance.new("Part",hit)
  163. p2.Anchored = true
  164. p2.Transparency = 0.6
  165. p2.CanCollide = false
  166. p2.Size = Vector3.new(0.2,0.2,0.2)
  167. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  168. p2.BrickColor = BrickColor.new("New Yeller")
  169. p2.Material = "Neon"
  170. local m2 = Instance.new("CylinderMesh",p2)
  171. m2.Scale = Vector3.new(60,10000,60)
  172. local scln = sound3:Clone()
  173. scln.Parent = hit
  174. scln:Play()
  175. local con2
  176. con2 = game:GetService("RunService").Heartbeat:connect(function()
  177. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  178. end)
  179. wait(7)
  180. vel2.Velocity = Vector3.new(0,0,0)
  181. wait(0.5)
  182. scln:Stop()
  183. local scln3 = sound5:Clone()
  184. scln3.Parent = hit
  185. scln3:Play()
  186. wait(1)
  187. local bav = Instance.new("BodyAngularVelocity",hit)
  188. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  189. vel2.Velocity = Vector3.new(0,-250,0)
  190. p2.BrickColor = BrickColor.new("Really red")
  191. local scln6 = sound6:Clone()
  192. scln6.Parent = hit
  193. scln6:Play()
  194. local continue = false
  195. local htc
  196. htc = hit.Touched:connect(function(hitp)
  197. if not hitp:IsDescendantOf(hit.Parent) then
  198. continue = true
  199. scln6:Stop()
  200. vel2:Destroy()
  201. con2:Disconnect()
  202. con1:Disconnect()
  203. htc:Disconnect()
  204. p2:Destroy()
  205. end
  206. end)
  207. repeat wait() until continue == true
  208. local ctab = {}
  209. for i=1,4 do
  210. local p = Instance.new("Part",hit)
  211. p.Size = Vector3.new(30,30,30)
  212. p.Anchored = true
  213. p.CanCollide = false
  214. p.TopSurface = "Smooth"
  215. p.BottomSurface = "Smooth"
  216. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  217. p.CFrame = hit.CFrame
  218. local con
  219. con = game:GetService("RunService").Heartbeat:connect(function()
  220. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  221. p.Transparency = p.Transparency + 0.01
  222. if p.Transparency >= 1 then
  223. con:Disconnect()
  224. end
  225. end)
  226. table.insert(ctab,con)
  227. end
  228. Instance.new("Explosion",workspace).Position = hit.Position
  229. local scln2 = sound4:Clone()
  230. scln2.Parent = hit
  231. scln2:Play()
  232. vel2:Destroy()
  233. hit.Parent:BreakJoints()
  234. repeat wait() until not hit:IsDescendantOf(workspace)
  235. con2:Disconnect()
  236. end
  237. end
  238. end
  239. end
  240. end
  241. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement