Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Hi there, this script works ,but i want to modify it,help?

Asked by
Gigaset39 111
3 years ago
  function NewTower()
    debounce = true
        Floor1 = Stages[math.random(1, #Stages)]:Clone()
        Floor1.Parent = Tower
    Floor1.PrimaryPart = Floor1:FindFirstChild("Center")
    Floor1:SetPrimaryPartCFrame(Floor1.Center.CFrame)
    local Floor1Height = Floor1.Height.Value

wait()
End.PrimaryPart = End:WaitForChild("Center")
End:SetPrimaryPartCFrame(Floor1.Center.CFrame + Vector3.new(0, Floor1Height), 0)
End:SetPrimaryPartCFrame(End.Center.CFrame * CFrame.Angles(0, math.rad(180), 0))
debounce = false

TowerHeight.Value = Floor1Height  + 15 * 2
ReplicatedStorage.HeightEvent:FireAllClients(TowerHeight.Value)
    end

this script is in the ServerScriptService. the #stages are in ServerScriptStorage in a folder named Stages. THIS SCRIPT IS NOT MADE BY ME.ok,soo.. it loads the stage where the ”Center” part is,it just dont play the script inside the stage. i want to make it play the script inside it.

Answer this question