I don't know how to explain this, but I have this script:
--Yeah, this is the clientside part of my sound script okay, bye. --Variables and services and stuff local SoundService = game:GetService("SoundService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local revent = ReplicatedStorage.SoundEvent local confirm = script.Parent.confirm local cooldown = 5 local debounce = false local audioid = script.Parent.Text confirm.MouseButton1Click:Connect(function(audioid) if not debounce then debounce = true end revent:FireServer(audioid) wait(cooldown) debounce = false end)
this one sends a remote to a speaker and it's supposed to play the contents of a text box.
local ReplicatedStorage = game:GetService("ReplicatedStorage") local revent = ReplicatedStorage.SoundEvent local soundbox = script.Parent.Sound local audio = script.Parent.Sound.SoundId local function test(audioid) audio = audioid--Ignore this part for now. print(audioid) end revent.OnServerEvent:Connect(test)
this is the server. MY ISSUE: I make it print the audioid, but instead it prints my username, can anybody help? It's a GUI by the way.