#i wanna make a bleach game how do i learn to code ?
1 messages · Page 1 of 1 (latest)
Then don't give up
ong just keep trying
First learn the basics
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
** You are now Level 6! **
Thanks
ngl every tutorial i watch is just copy what they do i dont understand how im supposed to do something i want to do but having no idea how to do it
for example a simple dash
pressing "A" will make you go faster for 1 sec and you will turn invisible with this effect
@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)
does it show error
nope it just doesnt work anymore when i click A
** You are now Level 4! **
so do you know whats the problem ?
Works for me
huh
oh ok lol do you know why the gui thing doesnt work ?
do u even have the gui?
i made the gui but i dont have the image
and what did u delete cause it still doesnt work for me
in starterplayerscripts
as a normal script?
localscript
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)
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)
hmm
is it working?
no i tried to check but i dont understand lol
thats weird
wait i deleted shunpogui
wow
does this have something to do ?
yes
bruh
it will infinite yield
the script doesnt work when i add a gui
the name
i mean when i add the gui lines to the script
is it possible to add any image to the game so i can add a dissapearing effect image ?
yes
hover mouse over the image property
3 dots will appear
click them
and import ur image
from there
this is so hard i dont understand how to make the image appear and dissapear
yes ik but idk how to make the image appear it just doesnt show
just do image.visible = true
its already on true btw
yo why isnt it working
** You are now Level 5! **
i want it to appear then disappear
but its not even appearing
yeah nvm the image is not even on the player but on the screen i give up
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