-- First Script
script.Parent.Touched:Connect(function(HIT)
if HIT.Parent:FindFirstChild("Humanoid") then
local Fin = game.ReplicatedStorage.Finished
Fin.Value = "yes"
end
script:Destroy()
end)
--Second Script
script.Parent.Touched:Connect(function(HIT)
if HIT.Parent:FindFirstChild("Humanoid") then
print("hey, thats pretty good")
local Fin = game.ReplicatedStorage.Finished
Fin.Value = "yes"
print("k")
local name = game.ReplicatedStorage.Win
local namei = game.Players:GetPlayerFromCharacter(HIT.Parent)
name.Value = namei.Name
print("yeet")
end
script:Destroy()
end)
My first script is the original script that went under a part. The part is suppossed to be the "finish line". It worked just fine
My second script is the same script with some minor diffrences. It now gets the name of the person who steps on it and stores. Now nothing even prints. Whats wtong?
