-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript
More file actions
37 lines (31 loc) · 1.11 KB
/
script
File metadata and controls
37 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local function giveBuildTool()
local buildTool = game.ServerStorage:FindFirstChild("Build Tool")
if buildTool then
local toolClone = buildTool:Clone()
toolClone.Parent = player.Backpack
end
local function createHollowBox()
local boxSize = Vector3.new(10, 10, 10)
local boxCenter = character.PrimaryPart.Position + Vector3.new(0, 5, 0)
local outerBox = Instance.new("Part")
outerBox.Size = boxSize
outerBox.Position = boxCenter
outerBox.Anchored = true
outerBox.Transparency = 0.5
outerBox.BrickColor = BrickColor.new("Bright red")
outerBox.CanCollide = false
outerBox.Parent = Workspace
local innerBox = Instance.new("Part")
innerBox.Size = boxSize - Vector3.new(2, 2, 2)
innerBox.Position = boxCenter
innerBox.Anchored = true
innerBox.Transparency = 1
innerBox.CanCollide = false
innerBox.Parent = Workspace
end
giveBuildTool()
createHollowBox()