Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

5 comments

0

i saw this and i was about to answer that xD

0

let me take a look

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?

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"

0

actually worked bro after taking a several looking,

This discussion is preserved as it was. New answers, comments, and votes are closed.