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

How to unachor a brick locally using FireClient?

I have a touchpad that when a player touches it it is to make a brick unacnhored, but only locally, not to the whole server. It seems that IT IS unanchoring the brick but the brick does not move, is this a limitation?

Touchpad script

script.Parent.Touched:connect(function(toucher)
    if not game.Players:GetPlayerFromCharacter(toucher.Parent) then return end -- Only works for players
    	local ball = script.Parent.Parent.ball1
   		game.ReplicatedStorage:WaitForChild("ball1"):FireClient(game.Players:GetPlayerFromCharacter(toucher.Parent), ball)
end)

LocalScript inside each player's playergui

game.ReplicatedStorage:WaitForChild("ball1").OnClientEvent:connect(function(ball)
	local debounce = false
	if debounce == false then 
		debounce = true 	
		ball.Anchored = false
		debounce = false
	end	
end)

1 answer

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