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 want to achieve a radius system like the one of 3008 (the whistle thingy) -
What is the issue? Include screenshots / videos if possible!
The issue is that i don’t know how to check if someone touched the radius to highlight the player like in 3008. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried searching in dev hub, but i don’t find anything and i searched on youtube, but i can’t find on it either.
Here’s my code:
Client:
local UIS = game:GetService("UserInputService")
local Character = script.Parent
local Radius = game:GetService("ReplicatedStorage").Radius
local WhistleSound = script:WaitForChild("Whistle")
local TS = game:GetService("TweenService")
local DB = false
local Cooldown = 10
local CheckIfPlayersTouched = game.ReplicatedStorage.CheckIfPlayersTouched
UIS.InputBegan:Connect(function(input, gameproccesed)
if gameproccesed then return end
if input.KeyCode == Enum.KeyCode.H and DB == false then
local RadiusClone = Radius:Clone()
local RadiusTS = TS:Create(RadiusClone, TweenInfo.new(0.5), {Size = Vector3.new(120.018, 120.018, 120.018)})
RadiusTS:Play()
DB = true
CheckIfPlayersTouched:FireServer(RadiusClone)
WhistleSound:Play()
RadiusClone.Parent = workspace
RadiusClone.CFrame = Character.HumanoidRootPart.CFrame
RadiusClone.CanCollide = false
RadiusClone.Anchored = true
RadiusTS.Completed:Connect(function()
RadiusClone:Destroy()
end)
wait(Cooldown)
DB = false
end
end)
I’m working on the server so i’m not gonna show it.