Advertisement
lafur

Untitled

Sep 16th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: Go to line 5 and put your name where it says "RazorShockk"
  6.  
  7. gui = false
  8.  
  9. me = "timetodie23232223"
  10.  
  11. bigcolor = "Really black"
  12.  
  13. smallcolor = "Really black"
  14.  
  15. XSize = 10
  16.  
  17. YSize = 5
  18.  
  19. ZSize = 2
  20.  
  21. Distance = 15
  22.  
  23. if script.Parent.className ~= "HopperBin" then
  24.  
  25. tool = Instance.new("HopperBin")
  26.  
  27. tool.Parent = game.Players[me].Backpack
  28.  
  29. tool.Name = "Wall Maker"
  30.  
  31. script.Parent = tool
  32.  
  33. end
  34.  
  35. local tool = script.Parent
  36.  
  37. tool.Selected:connect(function(mouse)
  38.  
  39. if gui == false then
  40.  
  41. gui = true
  42.  
  43. screen = Instance.new("ScreenGui")
  44.  
  45. screen.Parent = game.Players[me].PlayerGui
  46.  
  47. b1 = Instance.new("TextButton")
  48.  
  49. b1.Parent = screen
  50.  
  51. b1.Size = UDim2.new(0.02, 0, 0.05, 0)
  52.  
  53. b1.Position = UDim2.new(0.1, 0, 0.3, 0)
  54.  
  55. b1.Text = ">"
  56.  
  57. b1.MouseButton1Down:connect(function()
  58.  
  59. XSize = XSize + 1
  60.  
  61. msg = Instance.new("Message")
  62.  
  63. msg.Parent = tool.Parent.Parent
  64.  
  65. msg.Text = "X increased to "..XSize
  66.  
  67. msg.Name = "Text"
  68.  
  69. wait (2)
  70.  
  71. tool.Parent.Parent.Text:Remove()
  72.  
  73. end)
  74.  
  75. b2 = Instance.new("TextButton")
  76.  
  77. b2.Parent = screen
  78.  
  79. b2.Size = UDim2.new(0.02, 0, 0.05, 0)
  80.  
  81. b2.Position = UDim2.new(0, 0, 0.3, 0)
  82.  
  83. b2.Text = "<"
  84.  
  85. b2.MouseButton1Down:connect(function()
  86.  
  87. XSize = XSize - 1
  88.  
  89. msg = Instance.new("Message")
  90.  
  91. msg.Parent = tool.Parent.Parent
  92.  
  93. msg.Text = "X decreased to "..XSize
  94.  
  95. msg.Name = "Text"
  96.  
  97. wait (2)
  98.  
  99. tool.Parent.Parent.Text:Remove()
  100.  
  101. end)
  102.  
  103. b3 = Instance.new("TextLabel")
  104.  
  105. b3.Parent = screen
  106.  
  107. b3.Size = UDim2.new(0.08, 0, 0.05, 0)
  108.  
  109. b3.Position = UDim2.new(0.02, 0, 0.3, 0)
  110.  
  111. b3.Text = "Size-X"
  112.  
  113. b4 = Instance.new("TextButton")
  114.  
  115. b4.Parent = screen
  116.  
  117. b4.Size = UDim2.new(0.02, 0, 0.05, 0)
  118.  
  119. b4.Position = UDim2.new(0.1, 0, 0.35, 0)
  120.  
  121. b4.Text = ">"
  122.  
  123. b4.MouseButton1Down:connect(function()
  124.  
  125. YSize = YSize + 1
  126.  
  127. msg = Instance.new("Message")
  128.  
  129. msg.Parent = tool.Parent.Parent
  130.  
  131. msg.Text = "Y increased to "..YSize
  132.  
  133. msg.Name = "Text"
  134.  
  135. wait (2)
  136.  
  137. tool.Parent.Parent.Text:Remove()
  138.  
  139. end)
  140.  
  141. b5 = Instance.new("TextButton")
  142.  
  143. b5.Parent = screen
  144.  
  145. b5.Size = UDim2.new(0.02, 0, 0.05, 0)
  146.  
  147. b5.Position = UDim2.new(0, 0, 0.35, 0)
  148.  
  149. b5.Text = "<"
  150.  
  151. b5.MouseButton1Down:connect(function()
  152.  
  153. YSize = YSize - 1
  154.  
  155. msg = Instance.new("Message")
  156.  
  157. msg.Parent = tool.Parent.Parent
  158.  
  159. msg.Text = "Y decreased to "..YSize
  160.  
  161. msg.Name = "Text"
  162.  
  163. wait (2)
  164.  
  165. tool.Parent.Parent.Text:Remove()
  166.  
  167. end)
  168.  
  169. b6 = Instance.new("TextLabel")
  170.  
  171. b6.Parent = screen
  172.  
  173. b6.Size = UDim2.new(0.08, 0, 0.05, 0)
  174.  
  175. b6.Position = UDim2.new(0.02, 0, 0.35, 0)
  176.  
  177. b6.Text = "Size-Y"
  178.  
  179. b7 = Instance.new("TextButton")
  180.  
  181. b7.Parent = screen
  182.  
  183. b7.Size = UDim2.new(0.02, 0, 0.05, 0)
  184.  
  185. b7.Position = UDim2.new(0.1, 0, 0.4, 0)
  186.  
  187. b7.Text = ">"
  188.  
  189. b7.MouseButton1Down:connect(function()
  190.  
  191. ZSize = ZSize + 1
  192.  
  193. msg = Instance.new("Message")
  194.  
  195. msg.Parent = tool.Parent.Parent
  196.  
  197. msg.Text = "Z increased to "..ZSize
  198.  
  199. msg.Name = "Text"
  200.  
  201. wait (2)
  202.  
  203. tool.Parent.Parent.Text:Remove()
  204.  
  205. end)
  206.  
  207. b8 = Instance.new("TextButton")
  208.  
  209. b8.Parent = screen
  210.  
  211. b8.Size = UDim2.new(0.02, 0, 0.05, 0)
  212.  
  213. b8.Position = UDim2.new(0, 0, 0.4, 0)
  214.  
  215. b8.Text = "<"
  216.  
  217. b8.MouseButton1Down:connect(function()
  218.  
  219. ZSize = ZSize - 1
  220.  
  221. msg = Instance.new("Message")
  222.  
  223. msg.Parent = tool.Parent.Parent
  224.  
  225. msg.Text = "Z decreased to "..ZSize
  226.  
  227. msg.Name = "Text"
  228.  
  229. wait (2)
  230.  
  231. tool.Parent.Parent.Text:Remove()
  232.  
  233. end)
  234.  
  235. b9 = Instance.new("TextLabel")
  236.  
  237. b9.Parent = screen
  238.  
  239. b9.Size = UDim2.new(0.08, 0, 0.05, 0)
  240.  
  241. b9.Position = UDim2.new(0.02, 0, 0.4, 0)
  242.  
  243. b9.Text = "Size-Z"
  244.  
  245. b10 = Instance.new("TextButton")
  246.  
  247. b10.Parent = screen
  248.  
  249. b10.Size = UDim2.new(0.02, 0, 0.05, 0)
  250.  
  251. b10.Position = UDim2.new(0.1, 0, 0.45, 0)
  252.  
  253. b10.Text = ">"
  254.  
  255. b10.MouseButton1Down:connect(function()
  256.  
  257. Distance = Distance + 1
  258.  
  259. msg = Instance.new("Message")
  260.  
  261. msg.Parent = tool.Parent.Parent
  262.  
  263. msg.Text = "Distance increased to "..Distance
  264.  
  265. msg.Name = "Text"
  266.  
  267. wait (2)
  268.  
  269. tool.Parent.Parent.Text:Remove()
  270.  
  271. end)
  272.  
  273. b11 = Instance.new("TextButton")
  274.  
  275. b11.Parent = screen
  276.  
  277. b11.Size = UDim2.new(0.02, 0, 0.05, 0)
  278.  
  279. b11.Position = UDim2.new(0, 0, 0.45, 0)
  280.  
  281. b11.Text = "<"
  282.  
  283. b11.MouseButton1Down:connect(function()
  284.  
  285. Distance = Distance - 1
  286.  
  287. msg = Instance.new("Message")
  288.  
  289. msg.Parent = tool.Parent.Parent
  290.  
  291. msg.Text = "Distance decreased to "..Distance
  292.  
  293. msg.Name = "Text"
  294.  
  295. wait (2)
  296.  
  297. tool.Parent.Parent.Text:Remove()
  298.  
  299. end)
  300.  
  301. b12 = Instance.new("TextLabel")
  302.  
  303. b12.Parent = screen
  304.  
  305. b12.Size = UDim2.new(0.08, 0, 0.05, 0)
  306.  
  307. b12.Position = UDim2.new(0.02, 0, 0.45, 0)
  308.  
  309. b12.Text = "Distance"
  310.  
  311. end
  312.  
  313. mouse.Button1Down:connect(function()
  314.  
  315. click = true
  316.  
  317. while click == true do
  318.  
  319. wall = Instance.new("Part")
  320.  
  321. wall.Parent = workspace
  322.  
  323. wall.Size = Vector3.new(XSize, YSize, ZSize)
  324.  
  325. wall.Locked = true
  326.  
  327. wall.CFrame = CFrame.new(tool.Parent.Parent.Character.Torso.Position, mouse.Hit.p)
  328.  
  329. wall.CFrame = CFrame.new(wall.Position + (wall.CFrame.lookVector * Distance), mouse.Hit.p)
  330.  
  331. wall.BrickColor = BrickColor.new(bigcolor)
  332.  
  333. wall.Anchored = true
  334.  
  335. wait (0.1)
  336.  
  337. end
  338.  
  339. end)
  340.  
  341. mouse.Button1Up:connect(function()
  342.  
  343. click = false
  344.  
  345. end)
  346.  
  347. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement