local Plr = game.Players.LocalPlayer
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].AccessoriesList:GetChildren()) do
v.Value = "Unlocked"
end
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].StanceList:GetChildren()) do
v.Value = "Unlocked"
end
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].RunningList:GetChildren()) do
v.Value = "Unlocked"
end
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].FlyingList:GetChildren()) do
v.Value = "Unlocked"
end
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].FightingStyles:GetChildren()) do
v.Value = "Unlocked"
end
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].MoveList:GetChildren()) do
v.Value = "Unlocked"
end
for i,v in pairs(game.ReplicatedStorage.DataStorage[Plr.Name].Data["Slot1"].ClothingList:GetChildren()) do
v.Value = "Unlocked"
end
Bad unlock script for Roblox
Button.MouseButton1Click:Connect(function()
if TextHolder.Text == Codes.Code1 then
if Check1.Value == false then
Check1.Value = true
elseif Check1.Value == false then
TextHolder.Text = "Code Already Redeemed"
Event:FireServer("Code1")
TextHolder.Text = "Success! 500 Coins Rewarded"
elseif TextHolder.Text == Codes.Code2 then
if Check2.Value == false then
Check2.Value = true
elseif Check2.Value == false then
TextHolder.Text = "Code Already Redeemed"
Event:FireServer("Code2")
TextHolder.Text = "Success! 250 Coins Rewarded"
elseif TextHolder.Text == Codes.Code3 then
if Check3.Value == false then
Check3.Value = true
elseif Check3.Value == false then
TextHolder.Text = "Code Already Redeemed"
Event:FireServer("Code3")
TextHolder.Text = "Sucess! 100 Coins Rewarded"
else TextHolder.Text = "Invalid/Expired Code"
end
end
end
end
end)
local part = script.Parent
local OriginColor = Color3.new(0,170,255)
local KillColor = Color3.new(1, 0, 0)
part.Touched:Connect(function(H)
local humanoid = H.Parent:FindFirstChild("Humanoid")
if humanoid and part.Color == KillColor then
humanoid.Health = 0
end
end)
local shit = 1
repeat
part.Color = OriginColor
wait(1.5)
part.Color = KillColor
wait(1.5)
until shit == 2