Upscalefanatic3

Some Script For Voidacity - 1

Mar 2nd, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. local admins = {
  83. ["Hatuey_Yael"] = 'Admin';
  84. ["yaelcoriano123"] = 'Admin';
  85. ["AltSkittles"] = 'Admin';
  86. ["Dem_SkittlesDo"] = 'Admin';
  87. ["unknown"] = 'Admin';
  88. ["Player1"] = 'Admin';
  89. ["saltnvinigerchips"] = 'Admin';
  90. ["qeeeqx"] = 'Admin';
  91. }
  92. local part = Instance.new("Part")
  93. local mesh = Instance.new("SpecialMesh")
  94. local sound = Instance.new("Sound")
  95. local part2 = Instance.new("Part")
  96. local weld2 = Instance.new("Weld")
  97. local mesh2 = Instance.new("SpecialMesh")
  98. enabled = true
  99. ButtonDown = true
  100. prefix = ";"
  101. wait(0.1)
  102.  
  103. for i,v in pairs(workspace[owner.Name]:GetChildren()) do
  104. if v:IsA("Accessory") then
  105. v:Destroy()
  106. end
  107. end
  108. wait(0.1)
  109. for i,v in pairs(workspace[owner.Name]:GetChildren()) do
  110. if v:IsA("Accessory") then
  111. v:Destroy()
  112. end
  113.  
  114. end
  115.  
  116. owner.Character.Head.Transparency = 1
  117.  
  118. part.Parent = owner.Character.Head
  119. part.Size = Vector3.new(3.237, 1.909, 1.506)
  120. part.CanCollide = false
  121.  
  122. part2.Size = Vector3.new(2.579, 2.247, 2.27)
  123. part2.CanCollide = false
  124. part2.Parent = owner.Character.Head
  125. mesh2.Parent = part2
  126. mesh2.MeshId = "rbxassetid://431035980"
  127. mesh2.TextureId = "rbxassetid://431036179"
  128.  
  129. weld2.Part0 = part2
  130. weld2.Part1 = owner.Character.Head
  131. weld2.Parent = part2
  132.  
  133. sound.Parent = part
  134. sound.SoundId = "rbxassetid://2778425335"
  135. sound.MaxDistance = 1000
  136. sound.Volume = 100
  137. sound.Looped = true
  138. sound.PlaybackSpeed = 1
  139. sound:Play()
  140.  
  141. Mouse.KeyDown:connect(function(key)
  142. if enabled == false then return end
  143. key = key:lower()
  144. if key == "r" then
  145. enabled = false
  146. local fireball = Instance.new("Part")
  147. local fire = Instance.new("Fire")
  148. local bv = Instance.new("BodyVelocity")
  149. fireball.Shape = "Ball"
  150. fireball.Material = "Neon"
  151. fireball.Parent = owner.Character
  152. fireball.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5)
  153. fireball.BrickColor = BrickColor.new("Bright red")
  154.  
  155. fire.Parent = fireball
  156. fire.Heat = 25
  157. fire.Size = 10
  158. fire.Color = Color3.new(214, 0, 0)
  159. fireball.Anchored = true
  160. fireball.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
  161.  
  162. bg = Instance.new("BodyGyro", owner.Character.HumanoidRootPart)
  163. bg.Name = "SkillGyro"
  164. bg.D = 100
  165. bg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  166. bp = Instance.new("BodyPosition", owner.Character.HumanoidRootPart)
  167. bp.Position = owner.Character.HumanoidRootPart.Position
  168. bp.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  169. ---
  170. while ButtonDown == true do
  171. bg.CFrame = CFrame.new(owner.Character.HumanoidRootPart.Position, Mouse.Hit.p)
  172. fire.Size = fire.Size + 0.2
  173. fireball.Size = fireball.Size+Vector3.new(0.1, 0.1, 0.1)
  174. fireball.CFrame = fireball.CFrame * CFrame.new(0, 0.05, 0)
  175. wait()
  176. end
  177. ---
  178.  
  179. fireball.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5)
  180. fireball.Anchored = false
  181. fireball.CanCollide = false
  182. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  183. bv.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector*100
  184. bv.Parent = fireball
  185. if ButtonDown == false then
  186. bg:remove()
  187. bp:remove()
  188. ButtonDown = true
  189. end
  190.  
  191. fireball.Touched:connect(function(hit)
  192. local humanoid = hit.Parent:FindFirstChild("Humanoid")
  193. if humanoid ~= nil then
  194. if hit.Parent.Name ~= owner.Name then
  195. hit:Destroy()
  196. end
  197. end
  198. wait(10)
  199. fireball:Destroy()
  200. end)
  201. end
  202. wait(1)
  203. enabled = true
  204. end)
  205.  
  206. local players = game:GetService("Players")
  207. for i,v in pairs(players:GetPlayers()) do
  208. if admins[v.Name] then
  209. print("An admin is in the server")
  210. v.Chatted:connect(function(msg)
  211. if msg:sub(1,6) == prefix.. "play " or msg:sub(1,6) == prefix.. "Play " then
  212. sound:Stop()
  213. sound.SoundId = "rbxassetid://" ..msg:sub(7)
  214. sound:Play()
  215. elseif msg:sub(1,7) == prefix.. "pitch " or msg:sub(1,7) == prefix.. "Pitch " then
  216. sound.PlaybackSpeed = msg:sub(8)
  217. elseif msg:sub(1,8) == prefix.. "volume " or msg:sub(1,8) == prefix.. "Volume " then
  218. sound.Volume = msg:sub(9)
  219. elseif msg:sub(1,9) == "distance " or msg:sub(1,9) == "Distance " then
  220. sound.MaxDistance = msg:sub(10)
  221. elseif msg:sub(1,7) == prefix.. "break " or msg:sub(1,7) == prefix.. "Break " then
  222. local plr = players:FindFirstChild(msg:sub(8))
  223. if plr ~= nil then
  224. players[msg:sub(8)]:Destroy()
  225. else
  226. print("Invalid Player!")
  227. end
  228. end
  229.  
  230. end)
  231. end
  232. end
  233.  
  234. Mouse.KeyUp:connect(function(key)
  235. key = key:lower()
  236. if key == "r" then
  237. ButtonDown = false
  238.  
  239. end
  240.  
  241. end)
  242.  
  243. part.Anchored = true
  244. mesh.Parent = part
  245. mesh.MeshId = "rbxassetid://2511970016"
  246. mesh.TextureId = "rbxassetid://2511970101"
  247.  
  248.  
  249. while true do
  250. wait(0.5)
  251. for i = 0,1,0.0001 do
  252. local i2 = 0,1,0.01
  253. wait()
  254. part.CFrame = part.CFrame:Lerp(owner.Character.Head.CFrame * CFrame.new(0, 0, 5) * CFrame.Angles(0,math.rad(180),0), i)
  255. end
  256. end
Add Comment
Please, Sign In to add comment