Universal Script 📌
114 Views
127 Executions

Building Script

Universal Script 📌
IUSESCRIPTS_000
IUSESCRIPTS_000First script
3 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Build Blocks Change Forms Change Materials

View Raw
local P = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local player = P.LocalPlayer
local mouse = player:GetMouse()
local playerGui = player:WaitForChild("PlayerGui")

local safeContainer = (gethui and gethui()) or CoreGui:FindFirstChild("RobloxGui") or CoreGui
if safeContainer:FindFirstChild("DeltaUniversalEngine") then safeContainer.DeltaUniversalEngine:Destroy() end

local selMat = Enum.Material.Concrete
local selCol = BrickColor.new("Medium stone grey")
local selForm = "Block"
local activeTool = "None"

local matList = {
    {N = "Concrete", M = Enum.Material.Concrete, C = BrickColor.new("Medium stone grey")},
    {N = "Neon Glow", M = Enum.Material.Neon, C = BrickColor.new("Toothpaste")},
    {N = "Glass", M = Enum.Material.Glass, C = BrickColor.new("Light blue")},
    {N = "Forcefield", M = Enum.Material.ForceField, C = BrickColor.new("Really red")},
    {N = "Wood Planks", M = Enum.Material.WoodPlanks, C = BrickColor.new("Reddish brown")},
    {N = "Diamond Plate", M = Enum.Material.DiamondPlate, C = BrickColor.new("Dark stone grey")},
    {N = "Marble", M = Enum.Material.Marble, C = BrickColor.new("White")},
    {N = "Ice", M = Enum.Material.Ice, C = BrickColor.new("Pastel Blue")},
    {N = "Brick", M = Enum.Material.Brick, C = BrickColor.new("Rust")}
}

local formsList = {"Block", "Wedge", "Cylinder", "Sphere"}

UIS.InputBegan:Connect(function(input, processed)
    if processed then return end
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        local hitPos = mouse.Hit.p
        local targ = mouse.Target
        
        if mouse.Y < 180 and mouse.X > (mouse.ViewSizeX - 280) then return end

        if activeTool == "HAMMER" and hitPos then
            local p
            if selForm == "Wedge" then p = Instance.new("WedgePart") p.Size = Vector3.new(5, 5, 5)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
2.9M
1.1M
Bumped 3 hours ago
Key System

Script hub

#9 today

CanHub V2 200 GAMES KEYLESS

Script hub
5.5M
1.0M
Bumped 3 hours ago
Key System
Script hub
1.7M
2.2M
Bumped 4 hours ago
Key System

Script hub

#16 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.6k
83.0k
Bumped 4 hours ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.8k
Bumped 7 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
508
1.2k
Bumped 9 hours ago
Key System
Universal Script 📌
7.2k
142.9k
Bumped 9 hours ago