Man the scripts are just fine, nothing wrong with them. But I honestly don’t know how the dice is auto rolling, is there another script interfering or something?
lemme send all again maybe u notice if there is anything wrong
wait, dont read the script , i got it
(every time i click the button “D20” that should only open the gui on the left it roll a d20 (wich should be the function of the button on the left “Roll D 20”
Well can you tell me what was the problem, I’m genuinely intrigued.
So you solved it right? if you did then awesome work, just don’t forget to mark your post as solved! Good luck on your project!
i mean lemme try to solve it, then i can call this a solution (lol) anyway do you know by any case something about the camera problem?
the camera part is not a child of workspace.
Edit: Oh wait, write “workspace” not “Workspace”
Edit2: no wait i’m dumb
That error’s pretty self-explanatory. When the program executed at that time, “CamPart” didn’t exist.
A workaround would be to use the WaitForChild
method or verify with FindFirstChild
that “CamPart” existed before running any more code.
The former would be simpler because if it’s always supposed to be there you could do local camPart = Workspace:WaitForChild("CamPart")
. However, if it’s not always going to be there, it would be better to do the latter.
fixed dice
still dont know how to fix camera ( i mean i understand why it dont work but idk how to fix it) just got a dev forum about it i hope to get a solution from it (if u know it and wanna help just quick respond to this message or else il sign this as solution
give em a break lol, this forum is for learning.
Yeah you can try TheeDeathCaster’s advice, also to add, you can disable streaming enabled if your game is small, that way you can avoid getting errors like that.
small, its going to be private to play d&d (dungeon & dragons) with like 10 ppl so
Yeah just disable “streaming enabled”, saves you some headaches, Also for the camera issue, add a part named “CamPart”
I can see that your game doesn’t even have a part named that, so when you add it, it will fix.
Disabled streaming but still locked on spawn (and if i add CamPart locked on the “CamPart” part)
You’ll need to grow some programmer sense indeed (the equivalent of game sense).
You’d add that bit of code I recommended at the top of your main program.
I legit just said what you needed to do. I hadn’t used Roblox studio in like 1 or 2 years neither. Ezpz.
bro its not working, i know im bad but its like months i dont open studio (until yesterday)
literally tell me where to put “local camPart = Workspace:WaitForChild(“CamPart”)”
2 months without doing something = almost delete it from my mind
well il keep publishing the game and play it trought roblox every time to test