Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

I can't see my friend having his tool teleported while i can, Why?

Asked by
lo_1003 37
13 days ago
Edited 13 days ago

I tested my game with the position script so when i press Q it can teleport to the part that will teleport, Ex:

local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local Debounce = true

UIS.InputBegan:Connect(function(Input)
    if Input.KeyCode == Enum.KeyCode.E and Debounce == true then
        Debounce = false
        script.Parent.Parent.Handle.PartThatWillNeedToTeleport.Position=script.Parent.Parent.Handle.Change.Position
        wait(1)
        script.Parent.Parent.Handle.PartThatWillNeedToTeleport.Position=script.Parent.Parent.Handle.Return.Position

        Debounce = true
    end
end)

I tested the game but it works until i let my friend join but i can't see his own tool teleporting to the position, Why?

1 answer

Log in to vote
1
Answered by
sifterr 231 Moderation Voter
13 days ago
Edited 13 days ago

because you have it in a local script, everything that happens inside will only be seen from the client.

https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events

0
i saw this and i was about to answer that xD BhadTrains -3 — 13d
0
let me take a look lo_1003 37 — 13d
0
for some reason i can't change the block still with remoteevent, i changed the script to remote event script so that when the tool presses the keybind it can change position but whilist it cant. the error show me this the handle is not the part of the model, i dont have the model yet it shows me that why? lo_1003 37 — 13d
0
for now is not about the client but for me cause i cant see my stand teleporting with that error "the handle is not part of the model" lo_1003 37 — 13d
0
actually worked bro after taking a several looking, lo_1003 37 — 10d
Ad

Answer this question