Script editing?? I NEED HELP!!!! I tried making the last part but its too hard D:
wait(1)
local debounce = script.Parent.Parent.Debounce
local original = script.Parent.Head.BrickColor
local gamerun = script.Parent.Parent.gamerun
wait for gamerun = true --waits for the gamerun value to be true
while true do
function onClick(part)-- this is all happening of of clicking the brick, do I have to make a whole diffrent script instead of this format
script.Parent.Head.ClickDetector.MouseClick:connect(onClick)
while true do-- only on click will happen
if script.Parent.Parent.Debounce.Value == false then
script.Parent.Parent.Debounce.Value = true
script.Parent.Head.BrickColor = BrickColor.new.white
wait(0.5)
script.Parent.Head.BrickColor = original
wait(0.5)
script.Parent.Head.BrickColor = BrickColor.new.white
wait(0.5)
script.Parent.Head.BrickColor = original
local m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "The player has chosen " .. script.Parent.Name .. " as the next song"
wait(3)
m:remove()
wait(5)
while true do
local game1 = game.ServerStorage.game1 --cloning the game from serverstorage
local game1copy = game1:clone()
game1copy.Parent = game.Workspace
local place = game.Workspace.place
game1.Position = place.Position -- puts in the position of the brick called place
wait(1)
local player = game.Players:GetPlayers(4)-- does this mean that 4 people are in the game (alowed to be)
for i = 1, #player do
player[i].Character:MoveTo(Vector3.new(130.424, 0.5, -158.272)),(130.424, 0.5, -158.272)),(130.424, 0.5, -158.272)),(130.424, 0.5, -158.272))
--HOW DO I MAKE THAT SO only 1 person goes in each spot??
--now actually play
-- make a gui with moving pictures, as soon as the picture hits some line then you have to click the key it told you to
--make click timer thing that if you click at the prefect time you get a gui that has 1 gui (just a picture)
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer.PlayerGui
local textLabel = Instance.new("TextLabel")
textLabel.Parent = screenGui
textLabel.Text = "Hello " .. game.Players.LocalPlayer.Name
textLabel.Size = UDim2.new(0, 100, 0, 30)
local xPosition = 1
local speed = 0.0025
while true do
xPosition = xPosition - speed
textLabel.Position = UDim2.new(xPosition, 0, 0, 0)
if xPosition < -0.1 then
xPosition = 1
-- I need to change the GUI to a LOOONG picture GUI that goes half way accrss your screen
-- How do I make it only go half way across the screen
half way>| <<<picture moving this way |<Were the screen ends
LOOOOOOOOOOooOOOOOOOoooOOOOOO|OOOOOOng picture
-----------------------------------------------------------|
also in the picture there is a script that tells a special place in the picture where they have to click
so like if this is the picture
/(U_U)/|/(U_U)/|/(U_U)/|/(U_U)/|/(U_U)/|/(U_U)/
on every straght line you have to click a button like p ok your keyboard
--if you miss it kinda a gui picture that says ok happends
-- and if u miss it has a image that says miss on it
-- when u press a certain key you do a certain animation
--when u miss 5 things you do a diffrent animation
-- dont make the whole script of this part just tell me the key points for this(DO NOT JUST MAKE A SCRIPT FOR ME!!!)
gamerun = false
end
end
end
end-- do i need more ends???