#help mi

6 messages · Page 1 of 1 (latest)

jolly berry
#

local part = game.Workspace.Part
local tweenservice = game:GetService("TweenService")
local uis = game:GetService("UserInputService")

local tweeninfo = TweenInfo.new(
1.5,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
0,
false,
0

)
local properties = {
["Size"] = Vector3.new(90,2,2),
["Color"] = Color3.fromRGB(255, 28, 12)
}

local tween = tweenservice:Create(part, tweeninfo, properties)

uis.InputBegan:Connect(function(input, GameProcessedEvent)
if GameProcessedEvent then return end
if input.KeyCode == Enum.KeyCode.E then
print("E key pressed") -- Debugging the keypress
tween:Play()
end
end)

#

it doesnt work...

#

i tried to solve it with chat gpt, i mean i asked whats wrong to ai

#

and it said

#

"put print here so we can tell if its pressing or not"

#

nvm