본문 바로가기
로블록스로 배우는 코딩 #13 - 앉을 수 있는 의자 만들기 강릉바다의 블로그 Since 2008. 1. https://gnbada.kr/ 2022. 10. 6.
로블록스로 배우는 코딩 #12 - 게시판 세우기 강릉바다의 블로그 Since 2008. 1. https://gnbada.kr/ 2022. 10. 6.
로블록스로 배우는 코딩 #11 - 캐릭터에 효과(불, 연기, 스파클) 적용 local me = script.Parent local audio = script.Parent.Laser local function PassGate(part) local character = part.parent local humanoid = character:FindFirstChild("Humanoid") if humanoid ~= nil and me.Transparency ~= 1 then print(part.name) me.Transparency = 1 me.CanCollide = false local fire = Instance.new("Fire") fire.Parent = humanoid.Parent.UpperTorso fire.Heat = 10 fire.Size = 10 audio.Looped.. 2022. 10. 6.
로블록스로 배우는 코딩 #10 - 캐릭터 속성(속도, 높이, 크기 등) 제어 local me = script.Parent while me.Transparency ~= 1 do local RandomNumber = math.random(8000, 9000) / 10000 me.Transparency = RandomNumber wait(0.1) end local me = script.Parent local audio = script.Parent.Laser local function PassGate(part) local character = part.parent local humanoid = character:FindFirstChild("Humanoid") if humanoid ~= nil and humanoid.WalkSpeed ~= 50 then me.Transparency = 1.. 2022. 10. 6.
로블록스로 배우는 코딩 #9 - 버튼을 눌러 문 열고 닫기 lightStatus = false local light = game.Workspace.Light local hinge = game.Workspace.Door.HingeConstraint function onClicked(playerWhoClicked) hinge.Enabled = true if not lightStatus then light.Color = Color3.fromRGB(255, 255, 0) lightStatus = true hinge.AngularVelocity = -0.5 while hinge.CurrentAngle > -90 do wait(0.1) end else light.Color = Color3.fromRGB(0, 0, 0) lightStatus = false hinge.Angu.. 2022. 10. 6.
로블록스로 배우는 코딩 #8 - 버튼을 눌러 전등 끄고 켜기 lightStatus = false local light = game.Workspace.Light function onClicked(playerWhoClicked) script.Parent.Transparency = 1 if not lightStatus then light.Color = Color3.fromRGB(255, 255, 0) lightStatus = true else light.Color = Color3.fromRGB(0, 0, 0) lightStatus = false end wait(.1) script.Parent.Transparency = 0 end script.Parent.ClickDetector.MouseClick:connect(onClicked) 강릉바다의 블로그 Since 2008... 2022. 10. 6.