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

How do I make a local script cause a value in a folder to change for the entire server?

Asked by 4 years ago
Edited 4 years ago

Here are the scripts that I am using:

LOCAL SCRIPT:


local xa = workspace.CurrentCamera.CFrame.LookVector.Y print(xa) script.Parent.Position.Value.Value = xa -- script and value located in character. Value located in a folder called Position player.character.Position.Activate:FireServer(xa) -- remote event called "Active" and is located in the folder called Position which is located in the character

SCRIPT:

function own(xa)
--local b = require(script.Parent.Dawn)
script.Parent.Position.Value.Value = xa 
print(xa)
end

script.Parent.Position.Activate.OnServerEvent:Connect(own) -- script located in character 

Answer this question