So I'm working on a project of mine which requires the .Changed event. This project makes localscripts serversided using an RemoteEvent. Now heres the script. It needs some improvements but this is just a test for now. Im working on the properties. (And yes ik this could be exploited, but it is an private project for me and some friends so i dont expect it to get exploited.)
I need to make other properties such as CFrame, Position, Size, MeshId, SoundId and etc work with .Changed event.
LocalScript:
for i,v in next, game:GetDescendants() do
v.Changed:Connect(function(prop)
game:GetService("ReplicatedStorage"):FindFirstChild("Prop"):FireServer(v,prop,v[prop])
end)
end
ServerScript:
local PropRemote = game:GetService("ReplicatedStorage"):FindFirstChild("Prop") or false
PropRemote.OnServerEvent:Connect(function(plr, part, prop,partProp)
part[prop] = partProp
end) --Other properties such as Transparency, BrickColor, Reflectance and etc seem to be working well.
Any help is appreciated.
