I found what signals the game to start
Impact
I found what signals the game to start
Impact
ok so instead of script.OpeningScene.UnlockMouse, use this instead:
script.OpeningScene.Handler.Impact
Still wont play when i load in
This should be the final code:
local player = game. Players.LocalPlayer
local mouse = player:GetMouse()
script.OpeningScene.Handler.Impact.MouseButton1Click:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=569021388"
end)
I realized the quotation marks were not being recognized by roblox, copy paste this instead. Sorry about that.
Also i dont know if it matters but without impact i can still click the start button it just doesnt “start the game”/ Hide gui
Ohh it looks like Impact is an image label, it needs to be a text button, so find the textbutton that starts the game
it is either the UnlockMouse button or the Wakeup button
Also, i recommend you do not use spaces when naming items in studio, as it makes them harder to locate
So it apears the thing that makes the start button apear is actually a script so how would i go about that
can you send a screenshot of the script that creates the startbutton?
It looks like this is the button that starts the game:
local player = game. Players.LocalPlayer
local mouse = player:GetMouse()
script.OpeningScene.WAKEUP.MouseButton1Click:Connect(function()
mouse.Icon = "http://www.roblox.com/asset/?id=569021388"
end)
The script works, we just need to find which button starts the game
Impact is what send start game message i thought?
Being that it is an imagelabel, i dont think it is.
If you find the script that starts the game, could you send a screenshot my way?
local tweenservice = game:GetService("TweenService")
local startingwalkspeed
game:GetService("Players").PlayerAdded:Connect(function(player)
local newOpeningScene = script["Opening Scene"]:Clone()
newOpeningScene.Parent = player.PlayerGui
local newcurrenttarget = Instance.new("ObjectValue")
newcurrenttarget.Parent = player
newcurrenttarget.Name = "Current Target"
player.CharacterAdded:Connect(function(character)
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
if player.PlayerGui:FindFirstChild("Opening Scene") then
startingwalkspeed = humanoid.WalkSpeed
wait()
humanoid.WalkSpeed = 0
end
end
end)
end)
game.ReplicatedStorage.WAKEUP.OnServerEvent:Connect(function(player, SONG)
if player then
if SONG == "TRUE" then
local songgoal = {}
songgoal.Volume = 0.6
local tI = TweenInfo.new(6, Enum.EasingStyle.Quint)
tweenservice:Create(player.PlayerGui["Noise Ambience"], tI, songgoal):Play()
else
local character = player.Character
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
humanoid.WalkSpeed = startingwalkspeed
wait()
--character:FindFirstChild("FootstepsSounds").Disabled = false
--character:FindFirstChild("ViewBobbing").Disabled = false
end
local UI = player.PlayerGui:FindFirstChild("Opening Scene")
if UI then
UI:Destroy()
end
player.PlayerGui.Main.Enabled = true
local targetDialogue = player.PlayerGui:WaitForChild("Dialogue")
targetDialogue.Handler.Words.Value = "I can't believe I fell asleep again. I hope Ryan doesn't know about this."
targetDialogue.Handler.Speaker.Value = "You"
targetDialogue:WaitForChild("Activated").Value = "YES"
wait(1)
targetDialogue:WaitForChild("Activated").Value = "NO"
end
end
end)
ohh its in a server script. try putting this after the UI:Destroy() line:
local mouse = player:GetMouse()
mouse.Icon = "http://www.roblox.com/asset/?id=569021388"
Idk if you can change the mouses icon on the server side, but worth a try
one other thing found this
local player = game:GetService("Players").LocalPlayer
local tweenservice = game:GetService("TweenService")
local mouse = player:GetMouse()
local blureffect = script.Blur
blureffect.Parent = game:GetService("Lighting")
ACTIVATED = false
local soundsfolder = script.Parent:WaitForChild("Sounds")
local whoosh = soundsfolder:WaitForChild("Whoosh")
local heartbeat = soundsfolder:WaitForChild("Heartbeat")
local highlight = soundsfolder:WaitForChild("Highlight")
local click = soundsfolder:WaitForChild("Click")
local snoring = soundsfolder:WaitForChild("Snoring")
snoring:Play()
script.Parent:WaitForChild("Unlock Mouse").Modal = true
local wakeupbutton = script.Parent:WaitForChild("WAKEUP")
wakeupbutton.MouseEnter:Connect(function()
if ACTIVATED == false then
local goal = {}
--goal.TextColor3 = Color3.fromRGB(153, 255, 151)
goal.TextStrokeTransparency = 0
local tI = TweenInfo.new(0.75, Enum.EasingStyle.Quint)
tweenservice:Create(wakeupbutton, tI, goal):Play()
highlight:Play()
end
end)
wakeupbutton.MouseLeave:Connect(function()
local goal = {}
--goal.TextColor3 = Color3.fromRGB(255, 255, 255)
goal.TextStrokeTransparency = 1
local tI = TweenInfo.new(0.75, Enum.EasingStyle.Quint)
tweenservice:Create(wakeupbutton, tI, goal):Play()
end)
wakeupbutton.MouseButton1Click:Connect(function()
local newclicksound = Instance.new("Sound")
newclicksound.SoundId = click.SoundId
newclicksound.Parent = wakeupbutton
newclicksound:Play()
local newimpact = script.Impact:Clone()
newimpact.Parent = wakeupbutton
local goal = {}
goal.Position = UDim2.new(-0.268, 0,-1.5, 0)
goal.Size = UDim2.new(1.538, 0,3.98, 0)
goal.ImageTransparency = 1
local tI = TweenInfo.new(1, Enum.EasingStyle.Quint)
tweenservice:Create(newimpact, tI, goal):Play()
newclicksound.Ended:Connect(function()
newclicksound:Destroy()
end)
game:GetService("Debris"):AddItem(newimpact, 3)
ACTIVATED = true
end)
if not game:IsLoaded() then
game.Loaded:Wait()
end
print("LOADED!")
repeat
wait()
local beatimage = script.Parent:WaitForChild("Beat")
local goal1 = {}
goal1.ImageColor3 = Color3.fromRGB(85, 85, 85)
local goal2 = {}
goal2.ImageColor3 = Color3.fromRGB(52, 52, 52)
local tI = TweenInfo.new(0.25, Enum.EasingStyle.Quint)
wait(1)
heartbeat:Play()
tweenservice:Create(beatimage, tI, goal1):Play()
wait(0.3)
tweenservice:Create(beatimage, tI, goal2):Play()
wait(0.1)
until ACTIVATED == true
wait(0.5)
local beatimage = script.Parent:WaitForChild("Beat")
local goal = {}
goal.ImageTransparency = 1
local soundgoal = {}
soundgoal.Volume = 0
local buttongoal = {}
buttongoal.BackgroundTransparency = 1
buttongoal.TextTransparency = 1
buttongoal.TextStrokeTransparency = 1
local tI = TweenInfo.new(1, Enum.EasingStyle.Quint)
tweenservice:Create(beatimage, tI, goal):Play()
tweenservice:Create(snoring, tI, soundgoal):Play()
for i, textstuff in pairs(script.Parent:GetChildren()) do
if textstuff.Name == "Text1" or textstuff.Name == "Text2" or textstuff.Name == "Text3" or textstuff.Name == "Text4" or textstuff.Name == "Text5" then
local goal = {}
goal.TextTransparency = 1
local tI = TweenInfo.new(1, Enum.EasingStyle.Quint)
tweenservice:Create(textstuff, tI, goal):Play()
end
end
tweenservice:Create(wakeupbutton, tI, buttongoal):Play()
script.Parent.Info:TweenPosition(UDim2.new(0,0,1.2,0), nil, Enum.EasingStyle.Quint, 1, true, nil)
wait(1)
wakeupbutton.Visible = false
wait(3)
game.ReplicatedStorage.WAKEUP:FireServer("TRUE")
local uis = game:GetService("UserInputService")
script.Parent:WaitForChild("Unlock Mouse").Modal = false
script.Parent.Upper:TweenPosition(UDim2.new(0,0,-0.7,0), nil, Enum.EasingStyle.Quint, 2.5, true, nil)
script.Parent.Lower:TweenPosition(UDim2.new(0,0,1.2,0), nil, Enum.EasingStyle.Quint, 2.5, true, nil)
script.Parent.TopBar.Visible = false
local goalblur = {}
goalblur.Size = 0
local tI = TweenInfo.new(2, Enum.EasingStyle.Quint)
tweenservice:Create(blureffect, tI, goalblur):Play()
wait(2.5)
script.Parent.Upper.Visible = false
script.Parent.Lower.Visible = false
game.ReplicatedStorage.WAKEUP:FireServer("FALSE")
Try my above comment first, if it doesnt work we can try from the client side
The thing i just put is the script the fires when start is clicked