Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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"
- gui = false
- me = "timetodie23232223"
- bigcolor = "Really black"
- smallcolor = "Really black"
- XSize = 10
- YSize = 5
- ZSize = 2
- Distance = 15
- if script.Parent.className ~= "HopperBin" then
- tool = Instance.new("HopperBin")
- tool.Parent = game.Players[me].Backpack
- tool.Name = "Wall Maker"
- script.Parent = tool
- end
- local tool = script.Parent
- tool.Selected:connect(function(mouse)
- if gui == false then
- gui = true
- screen = Instance.new("ScreenGui")
- screen.Parent = game.Players[me].PlayerGui
- b1 = Instance.new("TextButton")
- b1.Parent = screen
- b1.Size = UDim2.new(0.02, 0, 0.05, 0)
- b1.Position = UDim2.new(0.1, 0, 0.3, 0)
- b1.Text = ">"
- b1.MouseButton1Down:connect(function()
- XSize = XSize + 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "X increased to "..XSize
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b2 = Instance.new("TextButton")
- b2.Parent = screen
- b2.Size = UDim2.new(0.02, 0, 0.05, 0)
- b2.Position = UDim2.new(0, 0, 0.3, 0)
- b2.Text = "<"
- b2.MouseButton1Down:connect(function()
- XSize = XSize - 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "X decreased to "..XSize
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b3 = Instance.new("TextLabel")
- b3.Parent = screen
- b3.Size = UDim2.new(0.08, 0, 0.05, 0)
- b3.Position = UDim2.new(0.02, 0, 0.3, 0)
- b3.Text = "Size-X"
- b4 = Instance.new("TextButton")
- b4.Parent = screen
- b4.Size = UDim2.new(0.02, 0, 0.05, 0)
- b4.Position = UDim2.new(0.1, 0, 0.35, 0)
- b4.Text = ">"
- b4.MouseButton1Down:connect(function()
- YSize = YSize + 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "Y increased to "..YSize
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b5 = Instance.new("TextButton")
- b5.Parent = screen
- b5.Size = UDim2.new(0.02, 0, 0.05, 0)
- b5.Position = UDim2.new(0, 0, 0.35, 0)
- b5.Text = "<"
- b5.MouseButton1Down:connect(function()
- YSize = YSize - 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "Y decreased to "..YSize
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b6 = Instance.new("TextLabel")
- b6.Parent = screen
- b6.Size = UDim2.new(0.08, 0, 0.05, 0)
- b6.Position = UDim2.new(0.02, 0, 0.35, 0)
- b6.Text = "Size-Y"
- b7 = Instance.new("TextButton")
- b7.Parent = screen
- b7.Size = UDim2.new(0.02, 0, 0.05, 0)
- b7.Position = UDim2.new(0.1, 0, 0.4, 0)
- b7.Text = ">"
- b7.MouseButton1Down:connect(function()
- ZSize = ZSize + 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "Z increased to "..ZSize
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b8 = Instance.new("TextButton")
- b8.Parent = screen
- b8.Size = UDim2.new(0.02, 0, 0.05, 0)
- b8.Position = UDim2.new(0, 0, 0.4, 0)
- b8.Text = "<"
- b8.MouseButton1Down:connect(function()
- ZSize = ZSize - 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "Z decreased to "..ZSize
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b9 = Instance.new("TextLabel")
- b9.Parent = screen
- b9.Size = UDim2.new(0.08, 0, 0.05, 0)
- b9.Position = UDim2.new(0.02, 0, 0.4, 0)
- b9.Text = "Size-Z"
- b10 = Instance.new("TextButton")
- b10.Parent = screen
- b10.Size = UDim2.new(0.02, 0, 0.05, 0)
- b10.Position = UDim2.new(0.1, 0, 0.45, 0)
- b10.Text = ">"
- b10.MouseButton1Down:connect(function()
- Distance = Distance + 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "Distance increased to "..Distance
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b11 = Instance.new("TextButton")
- b11.Parent = screen
- b11.Size = UDim2.new(0.02, 0, 0.05, 0)
- b11.Position = UDim2.new(0, 0, 0.45, 0)
- b11.Text = "<"
- b11.MouseButton1Down:connect(function()
- Distance = Distance - 1
- msg = Instance.new("Message")
- msg.Parent = tool.Parent.Parent
- msg.Text = "Distance decreased to "..Distance
- msg.Name = "Text"
- wait (2)
- tool.Parent.Parent.Text:Remove()
- end)
- b12 = Instance.new("TextLabel")
- b12.Parent = screen
- b12.Size = UDim2.new(0.08, 0, 0.05, 0)
- b12.Position = UDim2.new(0.02, 0, 0.45, 0)
- b12.Text = "Distance"
- end
- mouse.Button1Down:connect(function()
- click = true
- while click == true do
- wall = Instance.new("Part")
- wall.Parent = workspace
- wall.Size = Vector3.new(XSize, YSize, ZSize)
- wall.Locked = true
- wall.CFrame = CFrame.new(tool.Parent.Parent.Character.Torso.Position, mouse.Hit.p)
- wall.CFrame = CFrame.new(wall.Position + (wall.CFrame.lookVector * Distance), mouse.Hit.p)
- wall.BrickColor = BrickColor.new(bigcolor)
- wall.Anchored = true
- wait (0.1)
- end
- end)
- mouse.Button1Up:connect(function()
- click = false
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement