#i wanna make a bleach game how do i learn to code ?

1 messages · Page 1 of 1 (latest)

ruby jolt
#

whats the best way to learn coding cause everytime i try i get stuck somewhere and i give up

maiden tide
#

ong just keep trying

sacred folio
#

When u learned the baiscs well

#

Try to do small things

#

Like smalls system etc..

#

And there will come a time u will have enough experience to crrate ur own good game

#

If there is an erro in your script

#

Error*

#

Then u could just try another time

#

If u dont have anymore hope and want to "give up"

#

Then the devforum or discord are here

#

Its okay to get stuck, and its also normal

#

So just keep trying

#

Dont think like ur first game will be amazing, sadly i dont think so, thats the case for everyone

round larkBOT
#

studio** You are now Level 6! **studio

ruby jolt
#

for example a simple dash

#

pressing "A" will make you go faster for 1 sec and you will turn invisible with this effect

ruby jolt
#

@remote wharf im stuck my script stopped working

#

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

local playerGui = player:WaitForChild("PlayerGui")
local screenGui = playerGui:WaitForChild("ShunpoGui")
local speedLines = screenGui:WaitForChild("SpeedLines")

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local defaultSpeed = 16
local boostedSpeed = 200
local boostDuration = 0.2

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.A then
-- Boost speed
humanoid.WalkSpeed = boostedSpeed

    -- Make character invisible
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") or part:IsA("Decal") then
            part.Transparency = 1
        end
    end

    -- Flash black lines (shunpo effect)
    speedLines.ImageTransparency = 0
    task.delay(0.1, function()
        speedLines.ImageTransparency = 1
    end)

    -- Revert speed after 1 second
    task.delay(boostDuration, function()
        humanoid.WalkSpeed = defaultSpeed
    end)

    -- Revert visibility after 0.2 seconds
    task.delay(0.3, function()
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") or part:IsA("Decal") then
                part.Transparency = 0
            end
        end
    end)
end

end)

remote wharf
ruby jolt
#

nope it just doesnt work anymore when i click A

round larkBOT
#

studio** You are now Level 4! **studio

ruby jolt
remote wharf
ruby jolt
#

huh

remote wharf
#

I just deleted the gui shit

#

and it works

ruby jolt
#

oh ok lol do you know why the gui thing doesnt work ?

remote wharf
#

do u even have the gui?

ruby jolt
#

i made the gui but i dont have the image

#

and what did u delete cause it still doesnt work for me

remote wharf
#

wait

#

where did you save this script exactly

ruby jolt
#

in starterplayerscripts

remote wharf
#

as a normal script?

ruby jolt
#

localscript

remote wharf
#

huh

#

so it should work

ruby jolt
#

it was working until i added some lines

#

look this worked : local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local defaultSpeed = 16
local boostedSpeed = 50
local boostDuration = 1

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.A then
-- Boost speed
humanoid.WalkSpeed = boostedSpeed

    -- Make character invisible
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") or part:IsA("Decal") then
            part.Transparency = 1
        end
    end

    -- Revert speed after 1 second
    task.delay(boostDuration, function()
        humanoid.WalkSpeed = defaultSpeed
    end)

    -- Revert visibility after 0.2 seconds
    task.delay(0.2, function()
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") or part:IsA("Decal") then
                part.Transparency = 0
            end
        end
    end)
end

end)------------------------------------------------------------------ but this not : local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

local playerGui = player:WaitForChild("PlayerGui")
local screenGui = playerGui:WaitForChild("ShunpoGui")
local speedLines = screenGui:WaitForChild("SpeedLines")

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local defaultSpeed = 16
local boostedSpeed = 200
local boostDuration = 0.2

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.A then
-- Boost speed
humanoid.WalkSpeed = boostedSpeed

    -- Make character invisible
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") or part:IsA("Decal") then
            part.Transparency = 1
        end
    end

    -- Flash black lines (shunpo effect)
    speedLines.ImageTransparency = 0
    task.delay(0.1, function()
        speedLines.ImageTransparency = 1
    end)

    -- Revert speed after 1 second
    task.delay(boostDuration, function()
        humanoid.WalkSpeed = defaultSpeed
    end)

    -- Revert visibility after 0.2 seconds
    task.delay(0.3, function()
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") or part:IsA("Decal") then
                part.Transparency = 0
            end
        end
    end)
end

end)

remote wharf
#
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

local playerGui = player:WaitForChild("PlayerGui")
local screenGui = playerGui:WaitForChild("ShunpoGui")
local speedLines = screenGui:WaitForChild("SpeedLines")

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local defaultSpeed = 16
local boostedSpeed = 200
local boostDuration = 0.2

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then
        return
    end
    if input.KeyCode == Enum.KeyCode.A then
        -- Boost speed
        humanoid.WalkSpeed = boostedSpeed

        -- Make character invisible
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") or part:IsA("Decal") then
                part.Transparency = 1
            end
        end

        -- Flash black lines (shunpo effect)
        speedLines.ImageTransparency = 0
        task.delay(0.1, function()
            speedLines.ImageTransparency = 1
        end)

        -- Revert speed after 1 second
        task.delay(boostDuration, function()
            humanoid.WalkSpeed = defaultSpeed
        end)

        -- Revert visibility after 0.2 seconds
        task.delay(0.3, function()
            for _, part in ipairs(character:GetDescendants()) do
                if (part:IsA("BasePart") or part:IsA("Decal")) and part.Name ~= "HumanoidRootPart" then
                    part.Transparency = 0
                end
            end
        end)
    end
end)

ruby jolt
#

hmm

remote wharf
#

is it working?

ruby jolt
#

no i tried to check but i dont understand lol

remote wharf
#

thats weird

ruby jolt
#

wait i deleted shunpogui

remote wharf
#

wow

ruby jolt
#

does this have something to do ?

remote wharf
#

yes

ruby jolt
#

bruh

remote wharf
#

it will infinite yield

ruby jolt
#

dantg

#

alright i need to make a separate localscript for gui cause i dont understand

remote wharf
#

??

#

just add a gui

ruby jolt
#

the script doesnt work when i add a gui

remote wharf
#

the name

ruby jolt
#

i mean when i add the gui lines to the script

remote wharf
#

needs to be exact

#

ShunpoGui

#

and insied that

#

a imagelabel

#

called

#

SpeedLines

ruby jolt
#

exactly what i did

#

wait

ruby jolt
remote wharf
#

yes

ruby jolt
#

its a jpg

#

thx for helping btw

remote wharf
#

hover mouse over the image property

#

3 dots will appear

#

click them

#

and import ur image

#

from there

ruby jolt
remote wharf
#

imagetransparency = 0 means show

#

imagetransparency = 1 means hide

ruby jolt
#

yes ik but idk how to make the image appear it just doesnt show

remote wharf
#

just do image.visible = true

ruby jolt
#

its already on true btw

ruby jolt
round larkBOT
#

studio** You are now Level 5! **studio

remote wharf
#

do u even want the image?

#

u can delete it if u want to

ruby jolt
#

but its not even appearing

#

yeah nvm the image is not even on the player but on the screen i give up

remote wharf
#
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local defaultSpeed = 16
local boostedSpeed = 200
local boostDuration = 0.2

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then
        return
    end
    if input.KeyCode == Enum.KeyCode.A then
        -- Boost speed
        humanoid.WalkSpeed = boostedSpeed

        -- Make character invisible
        for _, part in ipairs(character:GetDescendants()) do
            if part:IsA("BasePart") or part:IsA("Decal") then
                part.Transparency = 1
            end
        end

        -- Revert speed after 1 second
        task.delay(boostDuration, function()
            humanoid.WalkSpeed = defaultSpeed
        end)

        -- Revert visibility after 0.2 seconds
        task.delay(0.3, function()
            for _, part in ipairs(character:GetDescendants()) do
                if (part:IsA("BasePart") or part:IsA("Decal")) and part.Name ~= "HumanoidRootPart" then
                    part.Transparency = 0
                end
            end
        end)
    end
end)

#

ther eu go

#

this will work