wormhun

dsdsddssd

Jul 12th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. print("-----------------")
  2. print("Minimic2002's Script Loading In")
  3. -- This script has been converted to FE by iPxter
  4.  
  5.  
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  8. do
  9. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  10. script.Parent = Player.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent and t.Function then
  36. t.Function(...)
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87. -----------------------------------------------------------------------------------------
  88. --//Script For 'Script Void Builder'
  89. Character = Player.Character
  90. print("---")
  91. print("Got Char")
  92. print(Character:GetFullName())
  93. print("---")
  94.  
  95. FloatingPart = Instance.new("Part",game.Workspace)
  96. FloatingPart.Anchored = true
  97. FloatingPart.CanCollide = false
  98. FloatingPart.Transparency = 1
  99. Following = true
  100.  
  101. Invisible = false
  102. print("Reached Mouse")
  103. Mouse.KeyDown:Connect(function(key)
  104. if key == "q" then
  105. FloatingPart.Position = Vector3.new(Character.Head.Position.X,Character.Head.Position.Y + 5,Character.Head.Position.Z)
  106. NewNegativePart = Instance.new("Part",game.Workspace)
  107. NewNegativePart.Anchored = true
  108. NewNegativePart.Size = Vector3.new(3,3,400)
  109. NewNegativePart.CFrame = FloatingPart.CFrame
  110. NewNegativePart.CFrame = CFrame.new(NewNegativePart.Position,Mouse.Hit.Position)
  111. NewNegativePart.Transparency = 0.5
  112. NewNegativePart.Material = Enum.Material.SmoothPlastic
  113. OtherParts = {NewNegativePart}
  114. print("Created Negative")
  115. TouchingParts = NewNegativePart:GetTouchingParts()
  116. NewNegativePart.CanCollide = false
  117. print(TouchingParts)
  118. print("Got Touching")
  119. for index = 1,#TouchingParts do
  120. print("Making Hole")
  121.  
  122. PartToMakeHoleIn = TouchingParts[index]
  123. --Anti-Error
  124. if PartToMakeHoleIn:IsA("MeshPart") then
  125.  
  126. else
  127. NewUnion = PartToMakeHoleIn:SubtractAsync(OtherParts)
  128. NewUnion.Anchored = PartToMakeHoleIn.Anchored
  129. NewUnion.CFrame = PartToMakeHoleIn.CFrame
  130. NewUnion.Parent = PartToMakeHoleIn.Parent
  131.  
  132. for _, Object in pairs(OtherParts) do
  133. Object:Destroy()
  134. end
  135.  
  136. NewUnion.Parent = game.Workspace
  137. PartToMakeHoleIn:Destroy()
  138. end
  139. NewNegativePart:Destroy()
  140. end
  141. NewNegativePart:Destroy()
  142.  
  143. end -- End Of Q bind
  144. if key == "e" then
  145. Wall = Instance.new("Part",game.Workspace)
  146. Wall.Size = Vector3.new(10,10,3)
  147. Wall.Anchored = true
  148. Wall.CFrame = Character.Head.CFrame + Character.Head.CFrame.LookVector * 5
  149. end
  150. if key == "z" then
  151. Mouse.Target:Destroy()
  152. end
  153. if key == "r" then
  154. BubbleShield1 = Instance.new("Part",game.Workspace)
  155. BubbleShield1.Transparency = 0.8
  156. BubbleShield1.Shape = "Ball"
  157. BubbleShield1.Size = Vector3.new(50,50,50)
  158. BubbleShield1.Anchored = true
  159. BubbleShield1.Name = "BubbleShield1"
  160.  
  161. BubbleShield2 = Instance.new("Part",game.Workspace)
  162. BubbleShield2.Transparency = 0.8
  163. BubbleShield2.Shape = "Ball"
  164. BubbleShield2.Size = Vector3.new(58,58,58)
  165. BubbleShield2.Anchored = true
  166. BubbleShield2.Name = "BubbleShield2"
  167.  
  168. game.Workspace:WaitForChild("BubbleShield1")
  169. game.Workspace:WaitForChild("BubbleShield2")
  170. OtherParts = {BubbleShield1}
  171. NewUnion = BubbleShield2:SubtractAsync(OtherParts)
  172. NewUnion.Anchored = true
  173. NewUnion.Parent = game.Workspace
  174. NewUnion.Color = Color3.new(0,0,10)
  175. NewUnion.CFrame = CFrame.new(Mouse.Hit.Position)
  176.  
  177. BubbleShield1:Destroy()
  178. BubbleShield2:Destroy()
  179. end
  180. if key == "x" then
  181. Mouse.Target.Size = Vector3.new(Mouse.Target.Size.X - 1,Mouse.Target.Size.Y - 1,Mouse.Target.Size.Z - 1)
  182. end
  183. if key == "c" then
  184. Mouse.Target.Size = Vector3.new(Mouse.Target.Size.X + 1,Mouse.Target.Size.Y + 1,Mouse.Target.Size.Z + 1)
  185. end
  186.  
  187.  
  188. end)
Add Comment
Please, Sign In to add comment