Errors I can not fix


local mouse = player:GetMouse()
mouse.Icon = "http://www.roblox.com/asset/?id=569021388"
script.OpeningScene.WAKEUP.MouseButton1Click:Connect(function()
	mouse.Icon = "http://www.roblox.com/asset/?id=569021388"
end)

1 Like

Inside of the server script you showed me, put this:

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
             local mouse = player:GetMouse()
             mouse.Icon = "http://www.roblox.com/asset/?id=569021388"
			
			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)
1 Like

Only the first two lines should do it

1 Like

image
image

1 Like

still dont work could you send the full version of that small script you wrote

1 Like

This?

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)
1 Like

Got this error

1 Like

These are only 2 errors left The one above nil with icon and this
image

1 Like

You cannot access the player’s mouse on the server, you would need to pass in whatever information you want from the player’s mouse using a remote from the client.

1 Like

Il continue tomorrow Thanks Everybodyy!!!

1 Like