Advertisement
geovanycool

Untitled

Oct 13th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.85 KB | None | 0 0
  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.  
  88. -- woah
  89.  
  90. -- Created by Nebula_Zorua
  91. -- Click to attack
  92. -- Uses skybox's sun
  93.  
  94. wait()
  95. script.Parent = nil
  96.  
  97. local me = owner;
  98.  
  99. local I = Instance.new
  100. function IT(instance,parent,properties)
  101. local inst = I(instance)
  102. for i,v in next, properties do
  103. pcall(function() inst[v[1]] = v[2] end)
  104. end
  105. inst.Parent = parent
  106. return inst
  107. end
  108.  
  109. function PARTANDMESH(parent,brickcolor,material,anchored,cancollide,locked,size,cframe,meshid,textureid,scale,partProps,meshProps)
  110. local part = IT("Part",parent or me.Character,{{"TopSurface",10},{"BottomSurface",10},{"BrickColor",brickcolor},{"Anchored",anchored},{"CanCollide",cancollide},{"Locked",locked},{"Material",material}, {"Size",size},{"CFrame",cframe}})
  111. local mesh = IT("SpecialMesh",part,{{"MeshId",meshid},{"TextureId",textureid},{"Scale",scale}})
  112. for i,v in next, partProps do
  113. pcall(function() part[i] = v end)
  114. end
  115. for i,v in next, meshProps do
  116. pcall(function() mesh[i] = v end)
  117. end
  118. return part,mesh
  119. end
  120. local RANDOM = math.random
  121.  
  122. function PART(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  123. local NEWPART = IT("Part",PARENT,{})
  124. NEWPART.formFactor = FORMFACTOR
  125. NEWPART.Reflectance = REFLECTANCE
  126. NEWPART.Transparency = TRANSPARENCY
  127. NEWPART.CanCollide = false
  128. NEWPART.Locked = true
  129. NEWPART.Anchored = true
  130. if ANCHOR == false then
  131. NEWPART.Anchored = false
  132. end
  133. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  134. NEWPART.Name = NAME
  135. NEWPART.Size = SIZE
  136. NEWPART.Position = me.Character.Torso.CFrame.p
  137. NEWPART.Material = MATERIAL
  138. NEWPART:BreakJoints()
  139. return NEWPART
  140. end
  141.  
  142. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) -- thanks shack BB
  143. local STATPART = PART(3, me.Character, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  144. STATPART.CFrame = CFrame.new(CFRAME.p + Vector3.new(0, 1.5, 0))
  145. local BODYGYRO = IT("BodyGyro", STATPART,{})
  146. local BODYPOSITION = IT("BodyPosition", STATPART,{})
  147. BODYPOSITION.P = 2000
  148. BODYPOSITION.D = 100
  149. BODYPOSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  150. if LABELTYPE == "Normal" then
  151. BODYPOSITION.position = STATPART.Position + Vector3.new(RANDOM(-2, 2), 6, RANDOM(-2, 2))
  152. elseif LABELTYPE == "Debuff" then
  153. BODYPOSITION.position = STATPART.Position + Vector3.new(RANDOM(-2, 2), 8, RANDOM(-2, 2))
  154. elseif LABELTYPE == "Interruption" then
  155. BODYPOSITION.position = STATPART.Position + Vector3.new(RANDOM(-2,2), 8, RANDOM(-2, 2))
  156. end
  157. game:GetService("Debris"):AddItem(STATPART ,5)
  158. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  159. BILLBOARDGUI.Adornee = STATPART
  160. BILLBOARDGUI.Size = UDim2.new(2.5, 0, 2.5 ,0)
  161. BILLBOARDGUI.StudsOffset = Vector3.new(-2, 2, 0)
  162. BILLBOARDGUI.AlwaysOnTop = false
  163. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  164. TEXTLABEL.BackgroundTransparency = 1
  165. TEXTLABEL.Size = UDim2.new(2.5, 0, 2.5, 0)
  166. TEXTLABEL.Text = TEXT
  167. TEXTLABEL.Font = "SciFi"
  168. TEXTLABEL.FontSize="Size42"
  169. TEXTLABEL.TextColor3 = COLOR
  170. TEXTLABEL.TextStrokeTransparency = 1
  171. TEXTLABEL.TextScaled = true
  172. TEXTLABEL.TextWrapped = true
  173. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  174. wait(0.2)
  175. for i=1, 5 do
  176. wait()
  177. THEBODYPOSITION.Position = THEPART.Position - Vector3.new(0, 0.5 ,0)
  178. end
  179. wait(1.2)
  180. for i=1, 5 do
  181. wait()
  182. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  183. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  184. THEBODYPOSITION.position = THEPART.Position + Vector3.new(0, 0.5, 0)
  185. end
  186. THEPART.Parent = nil
  187. end),STATPART, BODYPOSITION, TEXTLABEL)
  188. end
  189.  
  190. function GETREGION(point,range,ignore)
  191. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,250)
  192. end
  193.  
  194.  
  195. function AoEDAMAGE(pos,rad,min,max,avoidbyjump,critRate,critMult,kill)
  196. local dmg = RANDOM(min,max)
  197. local R3 = GETREGION(pos,rad,{me.Character})
  198. local Hit = {}
  199. for _,v in next, R3 do
  200. local h = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  201. if(h and not Hit[h])then
  202. Hit[h] = true
  203. if(v.Parent:FindFirstChild'Head' and v.Parent.Head:IsA'BasePart' and v.Parent.Name ~= 'CKbackup' and v.Parent.Name ~= 'Nebula_Zorua' and v.Parent.Name ~= 'Salvo_Starly')then
  204.  
  205. local hed = v.Parent.Head
  206. local crit = RANDOM(1,100)
  207. local dmgText = (crit <= critRate and "? - "..dmg*critMult or " - "..dmg)
  208.  
  209. if(kill)then
  210. dmgText = "INSTANT"
  211. v.Parent:breakJoints()
  212. end
  213. if(not avoidbyjump or hed.CFrame.y <= pos.y+3)then
  214. if(crit <= critRate)then
  215. --dmg*critMult
  216. h.Health = h.Health - dmg*critMult
  217. else
  218. h.Health = h.Health - dmg
  219. end
  220. StatLabel('Normal',hed.CFrame * CFrame.new(0, 0 + hed.Size.z - 1, 0),dmgText,(dmgText:find"?" and BrickColor.new'New Yeller' or dmgText == "INSTANT" and BrickColor.new'Really red' or BrickColor.new'Navy blue').Color)
  221. end
  222. end
  223. end
  224. end
  225. end
  226.  
  227.  
  228.  
  229. function SOUND(id,parent,pitch,volume,looped)
  230. local SOUND = I("Sound")
  231. SOUND.SoundId = id;
  232. SOUND.Parent = parent
  233. SOUND.Pitch = pitch or 1
  234. SOUND.Looped = looped or false
  235. SOUND.Volume = volume or 1
  236. return SOUND;
  237. end
  238.  
  239.  
  240. function FX(id,parent,pitch,volume)
  241. return coroutine.wrap(function()
  242. local FX = SOUND(id,parent,pitch,volume)
  243. FX:Play()
  244. repeat wait() until FX.IsLoaded
  245. game:service'Debris':AddItem(FX,FX.TimeLength+1)
  246. end)()
  247.  
  248. end
  249.  
  250. warn"Can we go on land?"
  251. warn"No."
  252. warn"Why?"
  253. warn"The sun is a deadly lazer"
  254.  
  255.  
  256. mouse.Button1Down:connect(function()
  257. FX("rbxassetid://811841430",workspace,1,10)
  258. local beam = I("Part",workspace)
  259. beam.TopSurface,beam.BottomSurface,beam.Size,beam.Anchored,beam.CanCollide,beam.Archivable = 10,10,Vector3.new(1,1,1),true,false,false
  260. beam.Material,beam.BrickColor = Enum.Material.Neon,BrickColor.new'New Yeller'
  261. local look = CFrame.new(Vector3.new(),game:service'Lighting':GetSunDirection())
  262. local kthx = IT("Part",nil,{
  263. {'Transparency',1},{'CanCollide',false},{'Anchored',true},{'Position',mouse.Hit.p}
  264. })
  265. local mesh = I("BlockMesh",beam)
  266. mesh.Scale = Vector3.new(5,5,1e4)
  267. local explosion,explosionMesh = PARTANDMESH(workspace,BrickColor.new'New Yeller',"Neon",true,false,true,Vector3.new(1,1,1),mouse.Hit,"","",Vector3.new(5,5,5),{},{MeshType=Enum.MeshType.Sphere})
  268. AoEDAMAGE(explosion.CFrame.p,25,1e25,1e25,false,100,2,true)
  269. for trans = 0, 1, .05 do
  270. explosion.Transparency = trans
  271. explosionMesh.Scale = explosionMesh.Scale + Vector3.new(2,2,2)
  272. beam.CFrame = CFrame.new(kthx.Position) * look * CFrame.new(0,0,-5000)
  273. mesh.Scale = Vector3.new(5-(trans/1)*5,5-(trans/1)*5,1e4)
  274. beam.Transparency = beam.Transparency + 0.035
  275. wait()
  276. end
  277. beam:destroy()
  278. explosion:destroy()
  279. end)
  280.  
  281. if(game:owner.UserId == 201729767)then
  282. while true do
  283. coroutine.wrap(function()
  284. for i = 1, 50 do
  285. warn("hi abuser bb")
  286. end
  287. end)()
  288. wait()
  289. end
  290. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement