Categories > Coding > Lua >
Loop stops after death in Combat Warriors
Posted
while true do
local Signals = {'MouseButton1Down', 'MouseButton1Click', 'Activated'}
local Button = game:GetService("Players").LocalPlayer.PlayerGui.RoactUI.MainMenu.PagesScreenGuiContainer["PlayPage_MainMenu"].MainButtonsFrameContainer["PlayPage_MainMenu"].Button.ButtonDetection
for i,v in pairs(Signals) do
firesignal(Button[v])
end
wait(0.5)
end
I'm not experienced in scripting, but I made this script for combat warriors. The intent of the script was to constantly respawn me after dying, you can test the script out in the game yourself, it allows you to respawn without clicking the play button, and I wanted it to be a loop, meaning I can respawn constantly without clicking anything, but the loop doesn't work. I made a post similar to this yesterday, and it was helpful but it still did not work. Please help me, and if you can, please explain why it doesn't work like I thought it would.
Added
I really don't know how to do that, but thank you
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post