#Getting error when trying to use remoteevent to make a proximity prompt enabled.
13 messages · Page 1 of 1 (latest)
This is the error, heres my server sided script,
local remote = game.ReplicatedStorage.Characters.manager2
remote.OnServerEvent:Connect(function(plr)
local trash = workspace.Maps["Cinema Map"].Trash:GetChildren()
for i, part in trash do
if part:IsA("MeshPart") then
local prompt = part:FindFirstChild("ProximityPrompt")
if prompt then
remote:FireClient(plr,part,prompt,true)
end
end
end
end)
heres my client side script
local remote = game.ReplicatedStorage.Characters.manager2
remote.OnClientEvent:Connect(function(plr,part,prompt,vis)
prompt.Enabled = true
end)
its def a client side issue, i js dont know what i did wrong since it all seems fine to me
Also, the server knows its a prox but the client cant do an :IsA function? im so fucking confused bru
Its prob bc it passed down the wrong parameters/values
I dont have my laptop atm so cant do much
Try debugging or make sure that its the prompt.
Bc the thing indicates that the passed down parameter is a Boolean
ohhh alr
i think its because of the vis i have
let me try removing that since its not really needed anyway
yup its working