#Help i want it to work on R6.
1 messages · Page 1 of 1 (latest)
It's a click detector and a script but its none scripts in the script
Copy the model, make it an acsessory put it in replicated storage and clone it and parent it to the character when the click detector is clicked
if your aiming to give spesific accessorys based on r15 or r6, youd mak a script where it detects if the user is r15 or r6, this can be done this way
game.Player.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Conncet(function(char)
local hum = char:FindFirstChild("Humanoid")
if hum.RigType == Enum.HumanoidRigType.R6 then
----your r6 script
else
-----your r15 script
end
end)
end)
this bassicly detects wheen a character respawns and does a script, you can use the if statement in many other ways like once theres a click detector activation
So i put this script in click detector?
not exacly youll have to change some of it to get the character
assuming if the click detector parent is clickdetector youd use someething like this
script.Parent.MouseClick:Connect(function(plr)
local char = plr.Character
local hum = char:FindFirstChild('Humanoid')
if hum.RigType == Enum.HumanoidRigType.R6 then
----your r6 script
else
-----your r15 script
end
end)
oh okay
if it worked, add the tag Solved to the channel