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

How to unachor a brick locally using FireClient?

Asked by
Seyfert 90
7 years ago

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

Log in to vote
1
Answered by
Seyfert 90
7 years ago

Nobody has any ideas?

0
Nope FiredDusk 1466 — 7y
0
lol stop commenting by putting answers bossay8 8 — 7y
Ad

Answer this question