#map generating

1 messages · Page 1 of 1 (latest)

sudden pawn
#

im trying to make a plate that expand depends on user input and when the server starts
how do i call the event for it?

#

my idea is
when server start or player want generate new map
clone the plate on every 4 studs far from original plate
but i don't know how to call the event for this

grim cape
#

What exactly do you mean by call "the event"

#

Do you mean the UserInputService? the RemoteEvent? or what kind of event?

sudden pawn
#

like gui with text input

#

expand by 4 studs x 6 studs

grim cape
#

this tutorial should help you

sudden pawn
#

thanks

grim cape
#

np

sudden pawn
#
first = workspace["default area"].SpawnLocation
regendef = workspace.Grids.three
function plateclone(xdemand,zdemand)
    for xrod = 0, xdemand, 1 do
        for zrod = 0, zdemand, 1 do
        task.wait(0.1)
        second = regendef:Clone()
        second.Parent = workspace.map
        second.Anchored = true
        second.Position = first.Position
        second.Position = second.Position + Vector3.new(1*zdemand,0,0)
        end
    end
end
plateclone(10,10)

i wrote this but it doesn't expand the plate

#

what's the problem here?

sudden pawn
#

yo uhh i still have no clue any help?

grim cape
#

do you really neeeed to clone the parts or could you just increase the size of the part as well?