Advertisement
Guest User

Spawn far away from home

a guest
Apr 7th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. function discoSpawn(name,size,position)
  2.    local spawn = Instance.new("SpawnLocation")
  3.    local wall = Instance.new("Part")
  4.    local roof = Instance.new("Part")
  5.    spawn.Name = ("discoSpawnPoint")
  6.    wall.Name = name
  7.    roof.Name = ("discoRoof")
  8.    spawn.Size = Vector3.new(100,2,100)
  9.    wall.Size = size
  10.    roof.Size = Vector3.new(100,2,100)
  11.    spawn.Position = Vector3.new(10000,1,0)
  12.    wall.Position = position
  13.    roof.Position = Vector3.new(10000,101,0)
  14.    spawn.Anchored = true
  15.    wall.Anchored = true
  16.    roof.Anchored = true
  17.    spawn.Material = ("Neon")
  18.    wall.Material = ("Neon")
  19.    roof.Material = ("Neon")
  20.    spawn.Parent = game.Workspace
  21.    wall.Parent = game.Workspace
  22.    roof.Parent = game.Workspace
  23.    spawn.Transparency = 1
  24.    wall.Transparency = 1
  25.    roof.Transparency = 1
  26. end
  27. discoSpawn("discoWall1",Vector3.new(2,100,100),Vector3.new(9950,50,0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement