generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Marketing
Home Search
 

Re: Created an AWESOME noise script!

Previous Thread :: Next Thread 
LuaJake is not online. LuaJake
Joined: 20 Jun 2013
Total Posts: 2009
05 Mar 2015 04:14 AM
I made this from scratch, it's not based off Perlin or anything like that.

I call it Septanian noise.

-- Septanian noise by LuaJake

local block = Instance.new('Part')
block.FormFactor = Enum.FormFactor.Symmetric
block.Size = Vector3.new(4,4,4)
block.Anchored = true
block.BrickColor = BrickColor.Green()

local lowest = -25
local highest = 25
local lowmap = -1
local highmap = 1

local range = highest - lowest
local noise = {}
local currentblock = 1

function setBlock(a,b,c)
local p = block:Clone()
p.Parent = workspace
p.CFrame = CFrame.new(p.Size.X*a,p.Size.Y*b,p.Size.Z*c)
p.Size = Vector3.new(4,4*(highmap - lowmap),4)
end

for x = lowest,highest do
wait()
for z = lowest,highest do
local xvalue = nil
local zvalue = nil
if x == lowest then
xvalue = 0
else xvalue = noise[currentblock-range-1]+math.random(lowmap,highmap)
end
if z == lowest then
zvalue = 0
else zvalue = noise[currentblock-1]+math.random(lowmap,highmap)
end
local y = (xvalue + zvalue)/2
table.insert(noise,y)
currentblock = currentblock + 1
setBlock(x,y,z)
end
end
Report Abuse
LuaJake is not online. LuaJake
Joined: 20 Jun 2013
Total Posts: 2009
05 Mar 2015 04:16 AM
I'll eventually add some smoothing operators to make it better ;)
Report Abuse
ORZpasserAtw is not online. ORZpasserAtw
Joined: 20 Feb 2011
Total Posts: 2365
05 Mar 2015 07:55 AM
how is it noise,I doesn't see anything about :play()
Report Abuse
tintinytdj is not online. tintinytdj
Joined: 09 Sep 2007
Total Posts: 267
05 Mar 2015 10:43 AM
Gj~
Report Abuse
AcidRoblox9 is not online. AcidRoblox9
Joined: 21 Jun 2013
Total Posts: 642
05 Mar 2015 10:54 AM
Good job! :D
Report Abuse
LuaJake is not online. LuaJake
Joined: 20 Jun 2013
Total Posts: 2009
05 Mar 2015 11:01 PM
It's nowhere as good as Perlin, but hey, at least I tried :]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Marketing
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image