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!
Fixing the few issues I have left with the boss arena/room and boss fight script so that my obby can have a boss fight at the last stage of my obby. A few issues are getting in my way of finishing my obby. I really didn’t want to post in the forum unless I have to. I wanted to exhaust using the AI assistant and look all through the creator store to find a solution. I cannot find any. So here I am.
-
What is the issue? Include screenshots / videos if possible!
Here they are. I can post the scripts here and explain where they are at so you can understand what the issues are. If you wish to look further at what is going on, I am willing to give edit access so you know where everything is exactly and why the script may be having conflicts of some kind.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have had some success with AI Assistant fixing some issues but it will not fix all of it. It may be working but there may be some conflict I do not understand or the AI didn’t reference the exact model areas or script areas.
- 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!
In BossRoom:
ActivateDoombringerOnTouch:
local model = script.Parent
local enterArenaPart = game.Workspace:FindFirstChild("EnterArena")
local doombringer = model:WaitForChild("Doombringer")
if enterArenaPart and doombringer then
-- Initially disable Doombringer's attack script
local attackScript = doombringer:FindFirstChild("AttackScript")
if attackScript then
attackScript.Disabled = true
end
enterArenaPart.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
-- Enable Doombringer's attack script when player touches EnterArena
if attackScript then
attackScript.Disabled = false
local movementScript = doombringer:FindFirstChild("Script")
if movementScript then
movementScript.Disabled = false -- Ensure the script is enabled
movementScript:Activate() -- Activate the script
end
end
end
end)
end
In BossRoom:
Script:
--[[
This script arrange the model to somewhere so you don't need to do it yourself.
Delete this script if you want to do it yourself.
]]
local model = script.Parent
local char = model:WaitForChild("Doombringer")
local stuff = model:WaitForChild("Stuffs")
char.Parent = workspace
stuff.Parent = game:GetService("ReplicatedStorage")
model:Destroy()
Here are the issues.
- When I go through the gray wall as seen in the first photo. That is EnterArena part which is supposed to activate Doombringer to start moving around, seek my avatar and attack me. I had AI Assistant make a script to stop Doombringer from freely moving around because at the beginning of the obby Doombringer was already running around and making noises messing up the entire obby.
I tried to get the boss to not move until I am at a certain number of studs away from it (proximity). Then the boss kept moving around so I asked it not to move at all until I touch the EnterArena part which is the big gray wall in the first photo. Then the boss is supposed to then freely move around and detect me, so it attacks me. The player jumps down into the arena to fight Doombringer. This was sourced from: The Doombringer Boss Fight - Creator Store.
This was a great script somebody did but there was no arena so I added an arena from another Creator Store model for tutorials for boss arenas. No door opened when Doombringer was defeated so I asked AI Assistant to have the Exit Door disappear which that worked. That succeeded until I run into the next issue I cannot figure out.
The only major issues I have which is holding me back from continuing my obby is that Doombringer fights from the beginning of the obby spawn and gets stuck from the player starting the obby at the very beginning when not even near the boss room. The boss fight is at the end of the obby before the police station. The boss fight started the minute I entered in the obby and when I get there many stages later, the boss is stuck and won’t attack me. Then I tell it not to move at all until I pass through the big gray wall but every time I ask AI Assistant to do this, the script may look okay but nothing happens. I keep telling the AI Assistant Doombringer is not moving and it does another script generating attempt but nothing works.
Here is some more important information.
I have the player drop down through this gate which will be after the EnterArena had been touched, and then the player can pick up the laser gun. I used a laser gun as I feel bullets are too extreme as my obby is not about shooting the bad guys, so I wanted to make it more fluff for a wider audience. It is meant to be an obby and not a shooting game. Anyways, the weapon works, the player can pick it up.
Then after Doombringer is defeated the script works (thanks to Assistant AI) where the door vanishes allowing the player to run through the what-used-to-be-a-door corridor to the platform as you see in the photo to run towards the police station for the last stage and completion of my obby game.
My major problem is now Doombringer will not move at all. Just stands there when I run through the EnterArena which is a big gray wall so that nobody can avoid touching it as it is meant to start up the boss fight.
The script disables Doombringer movements and attack script until I touch the EnterArena, then the script is supposed to be enabled. So far that is not happening.
My biggest issue is either Doombringer runs around and firing attacks at everything and gets stuck or it doesn’t move at all when I ask Assistant AI to stop it from moving unless I touch the certain gray wall. I did ask it not to have it move until I am a certain proximity of studs away but that almost worked but failed as well.
mechanism.rbxl (216.8 KB)
I don’t want to upload things which I am not allowed by license to distribute so I made a separate roblox map with only what is at issue for this forum thread (Everything including models and different parts) in there is from the creator store and not under the BuiltByBit license as the boss arena was being put in there to try to make a boss battle stage), but since different scripts are involved here, you may want to know what scripts are involved and with what exact models. So I have the boss arena, the Doombringer, the arch to the boss stage, and parts of a road.
If it is a conflict, it is difficult to figure out where a conflict is with complex scripts. So that is why I need to post the Roblox map here with exactly what can help you figure out the problem.
You can understand what script does exactly what to figure out fixing any issues I mentioned in this forum thread if you want to do so.
I am asking everyone for your help on this. I make no real money off of Roblox and am on a fixed income, but I do these maps so that I can make a lot of people happy and have fun. I do have UGC items, but I spent a good deal of real-life money overtime to have them which is why I sell UGC items, but I do not have an agreement to convert my robux back into cash. So I make no real money here. I do this for fun and to make others happy which is what Roblox is all about.
I am only going to this forum because I have tried everything else I could, and I am stuck. I need your help. I appreciate anybody who can help me. This may even help somebody else facing a similar issue to me. Thank You!
after reading a couple times, i still have no clue what the error is, you said too many confusing things, and also you didn’t provide much info, so all i can say right now is you relied on ai too much and it backfired
mechanism(2).rbxl (216.9 KB)
Sorry in the other map the player kept dying and couldn’t test it. I will have a short video showing the problem here.