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

How do I make a script permanent so that when I die it can't be reset?

Asked by 5 years ago

So... last question I did I think it didn't make sense so right now I'm gonna try to be more specific. so I want to make this script permanent but I don't know how... if it's possible please reply to me if it's not possible maybe there can be another way of making it possible.

--------Script Made By Alex198476Roblox Thanks For Using The Script Visible Arms-------- -- Variables -- local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() -- Events -- game:GetService("RunService").RenderStepped:Connect(function() -- Visible Arms 2.0 Status Working -- for i, part in pairs(character:GetChildren()) do if string.match(part.Name, "Arm") or string.match(part.Name, "Hand") then part.LocalTransparencyModifier = 0 end end end)

--------Script Made By Alex198476Roblox Thanks For Using The Script Visible Arms-------- -- Variables -- local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() -- Events -- game:GetService("RunService").RenderStepped:Connect(function() -- Visible Arms 2.0 Status Working -- for i, part in pairs(character:GetChildren()) do if string.match(part.Name, "Leg") or string.match(part.Name, "Foot") then part.LocalTransparencyModifier = 0 end end end)

0
I also did a bit of a change on the other script it should say "Visible legs" not "Visible arms" LucasgamerTV0 2 — 5y

1 answer

Log in to vote
0
Answered by
Elixcore 1337 Moderation Voter
5 years ago
Edited 5 years ago

If you want the script to keep going after you respawn, you will need to use the player.CharacterAdded event, it will start the script each time you spawn.

--Example:

local plr = game.Players.LocalPlayer

plr.CharacterAdded:Connect(function(chr)
    --script
end)

the code inside of the event will be executed each time your character gets added into the workspace.

0
Okay thank you. LucasgamerTV0 2 — 5y
0
Wait... where do I put it? LucasgamerTV0 2 — 5y
0
Like in the script LucasgamerTV0 2 — 5y
0
Well you put the script inside of the event. Elixcore 1337 — 5y
Ad

Answer this question