Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Air's Scripts--
- --This script was made by Stickmasterluke, but I made the script a little
- --less raw, to help complete newbies at scripting. (No offense). I barely
- --made ANY changes to the script, 85% of the credit goes to Stick.
- --Don't call me a noob for "st33ling h15 scr1pt fr00b", because I'm not.
- ----------------------------------------------------------------------------------------------
- --Don't change ANYTHING unless you're directed to, or you know what you're doing.
- --Below, are coordinates. Change them to fit your place perfectly.
- --The coordinates now (512, 100, 512) are perfect for a regular baseplate.
- --If your place is smaller/bigger, THAN change them. If not, don't touch.
- x=1000 --Change 512 to the needed coordinate. This is X coordinate
- y=1000 --Change 100 to the needed coordinate. This is Y coordinate
- z=1000 --Change 512 to the needed coordinate. This is Z coordinate
- increments=16 --Don't touch this.
- clarity=.7 --Change .8 to the transparency of the fog. 10 is invisible, and 0 is completely solid.
- ---------------------------------------------------------------------------------------------
- --Don't touch ANYTHING below, unless you totally know what you're doing.
- ---------------------------------------------------------------------------------------------
- gw=game.Workspace
- local check=gw:FindFirstChild("Fog")
- if check then
- check.Parent=nil
- end
- fog=Instance.new("Part")
- fog.Transparency=clarity
- fog.Anchored=true
- fog.CanCollide=false
- fog.formFactor="Symmetric"
- fog.Shape="Block"
- fog.TopSurface="Smooth"
- fog.BottomSurface="Smooth"
- fog.Size=Vector3.new(1,1,1)
- fog.BrickColor=BrickColor.new("Medium stone grey")
- local mesh=Instance.new("SpecialMesh")
- mesh.Name="Mesh"
- mesh.MeshType="Brick"
- mesh.Scale=Vector3.new(1,1,1)
- mesh.Parent=fog
- foggroup=Instance.new("Model")
- foggroup.Name="Fog"
- for i=1, x/increments do
- newfog=fog:clone()
- newfog.CFrame=CFrame.new(Vector3.new((x/-2)+.05+(increments*i),(y/2)+.05,.05))
- newfog.Parent=foggroup
- newfog.Mesh.Scale=Vector3.new(0,y,z)
- end
- for i=1, y/increments do
- newfog=fog:clone()
- newfog.CFrame=CFrame.new(Vector3.new(.05,(increments*i)+.05,.05))
- newfog.Parent=foggroup
- newfog.Mesh.Scale=Vector3.new(x,0,z)
- end
- for i=1, z/increments do
- newfog=fog:clone()
- newfog.CFrame=CFrame.new(Vector3.new(.05,(y/2)+.05,(z/-2)+.05+(increments*i)))
- newfog.Parent=foggroup
- newfog.Mesh.Scale=Vector3.new(x,y,0)
- end
- foggroup.Parent=gw
- -----------------------------------------------------------------------------------------------------
- --Air--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement