Welcome to the Forums!
Join thousands of other Roblox members with a free account.
Create Forum Account

how do i make it where if a player steps on a Part freezes other Players how also touched the Part like for example:

  • This website was created by Roblox members to replace the official forums (because Roblox shut them down) Join us if you like Roblox!

cacalol

Member
Reputation: 0 / 0 / 0
Sep 2, 2021
50
1
3
8
Roblox
easyreooo
Example: so they are 2 Players which they touch a Part the other player sees player1 freezing and player2 sees player1 freezing And if they touch Another Part called MarbleRemove Then Player1 sees player2 unfreezing and player2 sees unfreezing
 

CallMeKY

Moderator
Ultra
Reputation: 8 / 0 / 0
Feb 25, 2018
1,787
98
882
113
Maine, USA
Roblox
CallMeKY
Discord
CallMeKY#5012
Example: so they are 2 Players which they touch a Part the other player sees player1 freezing and player2 sees player1 freezing And if they touch Another Part called MarbleRemove Then Player1 sees player2 unfreezing and player2 sees unfreezing
I'm not sure what you mean exactly, do you want people to freeze when they look at each other? Unless you want it to be animated, a really simple way of freezing a player is to just anchor all of their parts.

Lua:
local function freezeCharacter(character, frozen) -- character is the character model, frozen is a bool. true is freeze, false is unfreeze
    for _, object in pairs(character:GetDescendants()) do
        if object:IsA('BasePart') then
            object.Anchored = frozen
        end
    end
end

-- usage example
game:GetService('Players').PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        while wait(5) do
            freezeCharacter(character, true)
            wait(3)
            freezeCharacter(character, false)
        end
    end)
end)
 

cacalol

Member
Reputation: 0 / 0 / 0
Sep 2, 2021
50
1
3
8
Roblox
easyreooo
Example: so they are 2 Players which they touch a Part the other player sees player1 freezing and player2 sees player1 freezing And if they touch Another Part called MarbleRemove Then Player1 sees player2 unfreezing and player2 sees unfreezing
I'm not sure what you mean exactly, do you want people to freeze when they look at each other? Unless you want it to be animated, a really simple way of freezing a player is to just anchor all of their parts.

Lua:
local function freezeCharacter(character, frozen) -- character is the character model, frozen is a bool. true is freeze, false is unfreeze
    for _, object in pairs(character:GetDescendants()) do
        if object:IsA('BasePart') then
            object.Anchored = frozen
        end
    end
end

-- usage example
game:GetService('Players').PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        while wait(5) do
            freezeCharacter(character, true)
            wait(3)
            freezeCharacter(character, false)
        end
    end)
end)
no
Example: so they are 2 Players which they touch a Part the other player sees player1 freezing and player2 sees player1 freezing And if they touch Another Part called MarbleRemove Then Player1 sees player2 unfreezing and player2 sees unfreezing
I mean like other players see you freezing when you touch a part