English 中文(简体)
当参与者加入游戏时,我怎么会开始使用ro子?
原标题:How do i make a roblox script start as soon as a player joins the game?
local Theme = workspace.CrucibleMusic1
local FlashEffect = script.Parent.FlashEffect
local Camera = workspace.Camera
local ScreenZoomAmount = 0.025 -- How much screen zoom when music is playing
local FlashAmount = 0.75 -- How much screen flash when music is playing
local ScreenAngelsAmount = 0.003 -- How much screen angles change when music is playing
local StandardFieldOfView = 70 -- Standard FieldOfView on roblox better set it to 70

game:GetService("RunService").RenderStepped:Connect(function()
    Camera.FieldOfView = StandardFieldOfView - Theme.PlaybackLoudness * ScreenZoomAmount
    FlashEffect.BackgroundTransparency = 1 - Theme.PlaybackLoudness * FlashAmount
    Camera.CFrame = workspace.Camera.CFrame * CFrame.Angles(0, 
        0, math.rad(math.random(- Theme.PlaybackLoudness,
            Theme.PlaybackLoudness) * ScreenAngelsAmount)) + Vector3.new(
        math.rad(math.random( - Theme.PlaybackLoudness * ScreenAngelsAmount,
            Theme.PlaybackLoudness * ScreenAngelsAmount) * ScreenAngelsAmount ), 
        math.rad(math.random( - Theme.PlaybackLoudness * ScreenAngelsAmount,
            Theme.PlaybackLoudness * ScreenAngelsAmount) * ScreenAngelsAmount ), 
        math.rad(math.random( - Theme.PlaybackLoudness * ScreenAngelsAmount,
            Theme.PlaybackLoudness * ScreenAngelsAmount) * ScreenAngelsAmount )
    )     
end)

How do i make this instantly start when i join? Im trying to figure out how to make this instantly start when a player joins the game, But i cant figure out how to do that. I tried putting it in ServerScriptService but it wouldnt run, Any ideas?

问题回答

页: 1 当地文本:<>。 或载于<条码>。

你们想在“启动”上操作哪一部分守则?

如果该守则被放在起步的文字或类似内容中,则该文字被复制,并且已经启动。 服务器式服务为server scripts。 他们使用服务器,而不是客户。





相关问题
What are the differences between NP, NP-Complete and NP-Hard?

What are the differences between NP, NP-Complete and NP-Hard? I am aware of many resources all over the web. I d like to read your explanations, and the reason is they might be different from what s ...

Implementation Detail for Graph Analysis Algorithms

Let s say I have a graph with "heavy" nodes, that is each node is an object that is already carrying a lot of data. I want to do a graph transformation that requires me to calculate a special ...

Worst case running time (Big O)

I have this question, and I don t know how to solve it, because I don t understand it. :( The question is: Programs A and B are analyzed and are found to have worst case running times no ...

RSA cryptosystem

Hi i am trying to set up an RSA cryptosystem i have all the values except d selected prime numbers: p=1889, q=2003, n=3783667, phi=3779776, e= 61 i got stuck finding d could anyone help me to figure ...

BNF Grammar Derivation

I want to apply rules of BNF Grammar to produce derivation for : a_Num

热门标签