Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Someone help pls!?

Asked by
Bulvyte 388 Moderation Voter
8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I've been playing with this for 5 hours and my brain is starting to explode... So this is actually the intro i've got... and it only works in solo mode when i go with testing 2 players or testing trough website button play it doesn't work too so when player joins server the cam rotates then he clicks play button which stops rotating it but it doesn't work as i said. I'm using music for the intro but if 1 player clicks "play " the intromusic dies and if other joins he cant hear it...

So heres the script of gui button

function onButton1Down()

    game.Workspace.IntroMusic.Volume = 0.9
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.8
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.7
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.6
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.5
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.4
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.3
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.2
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0.1
    wait(0.5)
    game.Workspace.IntroMusic.Volume = 0
    wait(0.5)
    game.Workspace.IntroMusic:remove()

end



script.Parent.MouseButton1Down:connect(onButton1Down)

This is the one which lowers intromusic then removes it

function onButton1Down()
    game.Workspace.CurrentCamera:remove()
    wait(.1)
    game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
    game.Workspace.CurrentCamera.CameraType = "Custom"
    game.Workspace.CurrentCamera.FieldOfView = 70
end



script.Parent.MouseButton1Down:connect(onButton1Down)

this is the script of play button when clicked kills the camera and player goes into game

script.Parent.MouseButton1Click:connect(function()
script.Parent.Visible = false
end)

this is the one that makes the gui disappear after clicked

game.Players.PlayerAdded:connect(function(player)

script.LocalScript:clone().Parent = player.CharacterAdded:wait()

end)

this one that adds the localscript to player when joined

local target = workspace.IntCam.Head
local camera = workspace.CurrentCamera
camera.CameraSubject = target
local angle = 5

while wait() do 
    camera.CoordinateFrame = CFrame.new(target.Position)
                                  * CFrame.Angles(0,angle,0)
                                 * CFrame.new(0,0,-30)
angle = angle + math.rad(.3)

end

and this script rotates the player's screen when he joined.

So again when i test it trough 2 players server mode it doesn't work. If i test it solo mode it works. If i test it trough website's in my profile "Play button" it doesn't work. Here is the link to see that it doesn't work. That's all i tried my best to explain now i don't know wheres the issue? Please help! http://www.roblox.com/games/176172096/Military-Tycoon-UPDATES

1 answer

Log in to vote
0
Answered by 8 years ago

Problem This is because you put sound in Workspace for all to hear as 1 initial value. You delete the Workspace sound at Script:1 Line :23.

Solution Copy the Sound in workspace into a gui to be played locally so only the player who clicks the sound can hear it. This will allow you to be able to use sound for all players.

0
The intro music is the second problem the first problem is the intro about the camera... when plays join my server and click "PLAY" button the button disappears and does nothing i wanted the answer for intro solution but not intro music, but w/e atleast someone answered me :) Now if u can just help me with this intro pls! :) Bulvyte 388 — 8y
0
and you coulda told me what script to use... Bulvyte 388 — 8y
0
Its not a script problem its how you went at it. User#5978 25 — 8y
Ad

Answer this question