Created
February 13, 2022 11:55
-
-
Save casualdegenerate/3b136173d4ec129d6235a7a68fdf132e to your computer and use it in GitHub Desktop.
Patch#0 for Project-JoJo on roblox.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- // slua (https://x.synapse.to) | |
print('slua https://x.synapse.to', 'Project JoJo Patch#0', script.Name) | |
loadfile('Player.lua')() -- // Module/Self Explanatory | |
-- // This is to patch harvest causing a UI bug where the roka UI stays after it steals the roka, and causes the UI to stay on the user's screen | |
local function harvest_roka(Character) | |
Character.ChildAdded:Connect(function(Child) | |
if Child.Name == 'RokakakaFruit' then | |
-- // I use parents as a trigger onto when to remove the UI | |
Child:GetPropertyChangedSignal('Parent'):Connect(function() | |
if Child.Parent ~= Character then | |
if Player.PlayerGui:FindFirstChild('rokagui') then | |
Player.PlayerGui.rokagui:Destroy() | |
end | |
end | |
end) | |
end | |
end) | |
end | |
Player.CharacterAdded:Connect(function(chr) | |
harvest_roka(chr) | |
end) | |
harvest_roka(Player.Character) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment