You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I need to show a circular storm barier -
What is the issue? Include screenshots / videos if possible!
i dont know how i would show this -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i dont know how to start
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Server Script Service:
local X = script["XCordnate(Studs)"].Value
local Z = script["ZCordnate(Studs)"].Value
local NX = script["XCordnateNegative(Studs)"].Value
local NZ = script["ZCordnateNegative(Studs)"].Value
local TimeBetweenCircles = script["TimeBetweenCircles(IncludingClosingTime)"].Value
local ClosingTime = script.ClosingTime.Value
--wait(TimeBetweenCircles)
local RX = math.random(NX,X)
local RZ = math.random(NZ,Z)
local Orgin = {RX,RZ}
local Radius = ((30 - PlrsInGame) / (RX + RZ)) * 30 -- take out the 25 upon compleation of the game
game.Workspace.StormStats.OrginX.Value = RX
game.Workspace.StormStats.OrginZ.Value = RZ
game.Workspace.StormStats.Radius.Value = Radius
game.Workspace.StormStats.FirstDone.Value = true
local Part = Instance.new("Part")
Part.Size = Vector3.new(1,1,1)
Part.Position = Vector3.new(Orgin[1], 20, Orgin[2])
Part.Parent = workspace
print(Radius)
this is apart of a larger script but the rest of it is compleately different then this script
Starter Character Scripts:
local Rate = 2.5
repeat
if workspace.StormStats.FirstDone.Value == true then
local Radius = workspace.StormStats.Radius.Value
local OrginX = workspace.StormStats.OrginX.Value
local OrginZ = workspace.StormStats.OrginZ.Value
local Distance = (script.Parent.PrimaryPart.Position - Vector3.new(OrginX,script.Parent.PrimaryPart.Position.Y,OrginZ)).magnitude
if Distance >= Radius then
script.Parent.Humanoid.Health -= Rate
end
end
wait(0.5)
until game.Workspace.GameEnded == true
I just need to show the storm to all the players in this game (I dont need to deal dammage with this im alr doing this in here