local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local finish = workspace.WinJoseph2
local rebirthRemote = game:GetService("ReplicatedStorage"):WaitForChild("JosephRemotes"):WaitForChild("Rebirth")
player.CharacterAdded:Connect(function(character)
char = character
end)
task.spawn(function()
while wait(5)do
rebirthRemote:InvokeServer()
end
end)
while wait(1)do
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
firetouchinterest(hrp, finish, 1)
firetouchinterest(hrp, finish, 0)
end
endsimple and unoptimized πβ
W
1local player = game:GetService("Players").LocalPlayer
2local char = player.Character or player.CharacterAdded:Wait()
3local finish = workspace.WinJoseph2
4
5local rebirthRemote = game:GetService("ReplicatedStorage"):WaitForChild("JosephRemotes"):WaitForChild("Rebirth")
6
7player.CharacterAdded:Connect(function(character)
8 char = character
9end)
10
11task.spawn(function()
12 while wait(5)do
13 rebirthRemote:InvokeServer()
14 end
15end)
16
17while wait(1)do
18 local hrp = char:FindFirstChild("HumanoidRootPart")
19 if hrp then
20 firetouchinterest(hrp, finish, 1)
21 firetouchinterest(hrp, finish, 0)
22 end
23end