Radiation system acs 1.7.5

okey u can help later? im really want this system I tried to do it many times but it didn’t work( ((

You can make a local script that makes it visible and make a ring around the zone which makes it invisible, also if you want daamage just have a damaging part with a 3 second debounce or more taking like 2 of health

Understanding this, you want to achieve the following then:

  • Establishing an area where if a player enters the region that it would trigger an event (Same to be applied when the player leaves the space I would assume)

  • A Screen GUI would appear that would give the illusion of the radiation effect while the player is in the region of the radiation

  • A radiation sound to play in the area of the radiation zone that wouldn’t be heard if your too far away from the zone

  • An damage system that would slightly decrease player’s health away at an interval time given while they are in the region.

Am I getting this logic correct? If so this can kind of establish a plan/step guide towards how you can approach coding it.

For detecting if players are in a specific space/part, there are a number of DevForum topics or YouTube videos that can explain/teach you how to detect if a player is in a certain space (Commonly using Region3). For UIs a probable approach that I can think of at the moment is establishing a UI in StarterGui with the effect and if the player enters and leaves the space, it would enable and disable the effect in PlayerGui (Kinda different from StarterGui but works similarly). For the sound, it’s also a searchable topic to figure out how sound can emulate or play in a certain space only. For the damage script, there are maybe a few that I can find.

I will link to you some places you can check out that may help you with your concern. They may or may not be direct answers but personally feel they may help out:

Sound Regions: Roblox - Play music in different areas - Scripting tutorial (2020 updated version) - YouTube
Constant Player Damage: How to make it so a player constantly takes damage while touching a part - #19 by goldenstein64
UI When Part Touched: How to make a "Gui" appear when you touch a "Part" in Roblox Studio! | Touched Function and other... - YouTube
Detecting if a player enters and leaves an area: How do I accurately check if a player is in a certain area? - #3 by kinkocat
What is a good way to detect if a player has entered/left a Region3?
Detecting Player In a Certain Area Question - #10 by amadeupworld2

4 Likes

This works fine but instead of doing an infinite loop, you should only check when the player moves. Always prefer events/listeners instead of infinite loops.

Thank you, you understood everything perfectly well, tomorrow I will do it if something doesn’t work out for me, I will ask you okay?

Sure no problem man! Just ask down here if you need clarifications.

Thank you very much, but if possible, is there such a thing that if I put on an ACS gas mask, the radiation wouldn’t kill me?

You would need a condition to determine if the player has an ACS gas mask equipped on. I do not exactly know how you implemented the gas mask or how you would implement it but things that can come to my head at the time is either having a bool that checks itself when equipped on and vice versa then determining if bool == false then proceed with the radiation effect or something a simple as if a model/part/mesh can be found on the player’s character (attached to the head) or vice versa.

Yes, you read my thoughts, I thought so and did so, but when I tried it, I did not take a gas mask and there were other problems because I set the bool condition with the script
honestly I do not know why it does not work, but in my opinion everything should have worked right, since I did not find any errors in the script (

I am a ‘bit’ late, but here is my advice: Use the Runservice and connect a function to .Heartbeat. The function should run workspace:GetPartBoundsInBox for every radiation zone part, and if it detects the player’s humanoidrootpart then it gives the effect. Also for optimization, use overlapparams, set the filtertype(i think) to include and add all character’s humanoidrootpart to the filter.

I actually have done something like this in my game:

In this game, I use a system where a script constantly detects the local HRP’s distance to the nearest radiation object (tagged with Radiation), and if the distance is below a certain amount it inflicts damage to the player. (damage is amplified inversely with distance)

I also have implemented a geiger counter using the same system.