#Remotes somehow not working
70 messages · Page 1 of 1 (latest)
ok so
block[plr] = part1
print(block[plr])
if part1 then
cameraremote:FireClient(plr,part1,"test123")
print(part1)
end```
prints out:
the part
the part
so block[plr] (which is set to part1) is correctly set
same with it printing part1
cameraremote.OnClientEvent:Connect(function(part,value)
print(part, value)```
client
SOMEHOW PRINTS
nil test123
yes the part is accesable by client. as its in folder in workspace
ok so the first parameter is always the player when using onClientEvent
dont think thats correct bud
so do plr,part,value
🙏 you are using client event
client to client
ohhh
mb for not being clear
Is the local script deleting that part somehow? That’s kinda the only reason I can think of
nope
its still there
and
i can access the part
but doesnt wanna be sent thro remote somehow
Does it print the part on the server?
yup
part is located in workspace.folder
and its called plr.UserId
and
i can get it by doing workspace.folder:WaitForChild(player.UserID)
no problem
it just refuses to be sent thro remote
I guess just send the part name into the remote then find it on the client
.
ServeR: (DONT MIND THE NAMES)
proximy.Triggered:Connect(function(plr)
local part1 = sigmapart:Clone()
part1.Name = plr.UserId
part1.Parent = rockets
block[plr] = part1
print(block[plr])
if part1 then
cameraremote:FireClient(plr,part1,"test123")
print(part1)
end
end)```
prints out the part twice
client:
```lua
cameraremote.OnClientEvent:Connect(function(part,value)
print(part, value)
print(workspace.Rockets:WaitForChild(player.UserId))```
First print = nil test123
2nd print = prints it fine
shit weird
does the client code have any other variable with the same name? i dont know bro
Yeah this is a weird issue haha
Alright
If you used the roblox ai thing then its probabky doing something to the part or code as the ai can spawn a script and put it inside a random part or in serverscript
i do not use ai
The other reason could be because studio is bad and just close studio and open it again
Happaned to me alot of times