Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function discoSpawn(name,size,position)
- local spawn = Instance.new("SpawnLocation")
- local wall = Instance.new("Part")
- local roof = Instance.new("Part")
- spawn.Name = ("discoSpawnPoint")
- wall.Name = name
- roof.Name = ("discoRoof")
- spawn.Size = Vector3.new(100,2,100)
- wall.Size = size
- roof.Size = Vector3.new(100,2,100)
- spawn.Position = Vector3.new(10000,1,0)
- wall.Position = position
- roof.Position = Vector3.new(10000,101,0)
- spawn.Anchored = true
- wall.Anchored = true
- roof.Anchored = true
- spawn.Material = ("Neon")
- wall.Material = ("Neon")
- roof.Material = ("Neon")
- spawn.Parent = game.Workspace
- wall.Parent = game.Workspace
- roof.Parent = game.Workspace
- spawn.Transparency = 1
- wall.Transparency = 1
- roof.Transparency = 1
- end
- discoSpawn("discoWall1",Vector3.new(2,100,100),Vector3.new(9950,50,0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement