Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

need help with remote events(im really bad at them)can anyone help?

Asked by 4 years ago

i need to make this script change value both at server and client. im really bad at remote events and i didnt understand it at all

wait(1)
player = game.Players.LocalPlayer
button = script.Parent
local debounce = false
local Value = workspace.telepart4.Value.Value
function helpme()
 if not debounce then

 debounce = true
 LowerTorso = player.Character.LowerTorso
 LowerTorso.CFrame = game.Workspace.telepart4.CFrame
 end
end
button.MouseButton1Click:connect(helpme)

while true do wait()
debounce = false
wait(7.5)
end

0
i forgot to type in that i forgot to include the value changing line its after line 11: Value = 1 megahealth303 0 — 4y
0
Changing the variable's value doesn't change the value of the actual value instance. DeceptiveCaster 3761 — 4y
0
remote events are for communication between client and server and back, there best used for transporting data from the client to the server like the names of players for example, the same thing can be done with server data to a specific client or all clients LoganboyInCO 150 — 4y

Answer this question