#Scripts not working when equipped using a gui
1 messages · Page 1 of 1 (latest)
Ok
Ok?
@twilit dagger
try maybe changing the way you made the sound play?
idk how since im a beginner but im pretty sure that works
i have a script that plays it for when i swing and hit
it works just fine whenever used in the starterpack but when trying to clone it through a gui it does not
Are u using a remote event or just cloning it from a localscript
Also
its not letting me send the code for some reason
Are you equipping via localscript or serverscript
localscript
Thats why...
Localscripts dont get registered on the server
oh
Ao if it's a serverscriptnin the tool it won't work
ohh
If you want to understand more when testing you can switch to server mode and look in the char
The tool won't be there
let me try
** You are now Level 1! **
your rightt
so how do i go about replacing it?
Use a remote event to send the tool to the server then equip it from there
Like
--localscript
Event:FireServer(tool)
-- receiving end
Event.OnServerEvent:Connect(function(plr, tool)
--equip it here
end)
** You are now Level 8! **
alright
wait so it has to be a script?
You fire a remote event (in replicated storage) in the localscript
Then you catch the event in a serverscript
The first one will always be the player
Then it's the info you want to send
alright thanks man it started working
Np
ANYTHING but sending the script
** You are now Level 1! **
😭
It's solved dw
I'm worrying
it wouldn't let me
sureeee