#How to make a "Gui Effect" (When clicked it has a bounce effect)
258 messages · Page 1 of 1 (latest)
TweenService

;c
been tryin for 3 days
cant figure out a script
that works
Have you tried using the "brain", whatever that might be?
I don't have one
):

:C
This is a help channel you don’t ask for people to code your games here
@pine field @cerulean jetty ok so
local btn = script.Parent
local isHovering = false
btn.MouseEnter:Connect(function()
isHovering = true
btn:TweenSize(UDim2.new(0.65, 0,0.22, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseLeave:Connect(function()
isHovering = false
btn:TweenSize(UDim2.new(0.63, 0,0.204, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseButton1Down:Connect(function()
btn:TweenSize(UDim2.new(0.65, 0,0.22, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end)
btn.MouseButton1Up:Connect(function()
if not isHovering then
btn:TweenSize(UDim2.new(0.63, 0,0.204, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
else
btn:TweenSize(UDim2.new(0.63, 0,0.204, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.2, true)
end
end)
I changed sizes n stuff
but like
when I click the button
it does this
Um..... what the heck is this?
only effects 1 corner
** You are now Level 5! **
I’m on mobile so I can’t give my thoughts unfortunately
Good luck with it though
Send a screen recording or something I don’t notice anything
local TweenService = game:GetService("TweenService")
local button = script.Parent
local tInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quint)
local tweenEnter = TweenService:Create(button, tInfo, {Size = Udim2.new(x1, 0, y1, 0)})
local tweenLeave = TweenService:Create(button, tInfo, {Size = Udim2.new(x2, 0, y2, 0)})
button.MouseEnter:Connect(function()
tweenEnter:Play()
end)
button.MouseLeave:Connect(function()
tweenLeave:Play()
end)
This should work... I've never seen a script like yours
You might need to add a debounce
what do you mean
A checker
to check what
nvm
local TweenService = game:GetService("TweenService")
local button = script.Parent
local tInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quint)
local tweenEnter = TweenService:Create(button, tInfo, {Size = Udim2.new(x1, 0, y1, 0)})
local tweenLeave = TweenService:Create(button, tInfo, {Size = Udim2.new(x2, 0, y2, 0)})
button.MouseEnter:Connect(function()
tweenEnter:Play()
end)
button.MouseLeave:Connect(function()
tweenLeave:Play()
end)
doesnt work
hold on
lemme fix smth

It makes sure that a process doesn’t repeat itself as it’s happening
Or whenever you don’t want it to
thats what happened with the other script
this one doesn't work tho
Im 99% sure you didnt even changed x1, x2, y1 and y2 xD
Vector3?
huh\
But still, that should be a pretty easy-to-fix mistake
What? no... is a gui
yeah
Oh yeah I forgot lmao
local TweenService = game:GetService("TweenService")
local button = script.Parent
local tInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quint)
local tweenEnter = TweenService:Create(button, tInfo, {Size = Udim2.new(0.65, 0,0.22, 0)
local tweenLeave = TweenService:Create(button, tInfo, {Size = Udim2.new(0.63, 0,0.204, 0)
button.MouseEnter:Connect(function()
tweenEnter:Play()
end)
button.MouseLeave:Connect(function()
tweenLeave:Play()
end)
Change "Udim2" to "UDim2"
New scripters watching their output box flooding with red text and being oblivious to what’s wrong
Yea lol
I swear, they should add a requirement to have some experience with scripting... At least knowing how to fix something like this...
a
API access
ok how to fix button
Hey it’s better to humiliate yourself a bit so you can learn rather than not and being dumb for life
honestly
ima fix the button
dont tell me
i got this.
The output should give you a good idea of what’s wrong with your code too
Troubleshooting 101 
And the red line
ok
I am scared of the red line.
Every scripter/programmer is
I’m assuming that because you’ve moved on to the gui now that you’ve already coded a big chunk of your game right?
working with someone
Unless you made a toolbox dump game
good joke
somehow i'm the "scripter and gui maker"
Like most of people asking for help around here
Nor any code lmao
not like that
Other than the occasional kill bricks and spinny parts
For an obby you literally need one script to save/load data and teleport player to checkpoint lol
obviously the obby parts itself don't need code
yeah
unless its a killbrick
i like men
** You are now Level 3! **
3 lines of code 
yeah
Free coems? 🤑🤑🤑
Cool, but who cares?
:3
Oh... Sorry then
but what if fornite go and do big boom
nuke war
ye
Show the entire script ;-;
do
local button = script.Parent --or idk
local TweenService = game:GetService("TweenService")
local button = script.Parent
local tInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quint)
local tweenEnter = TweenService:Create(button, tInfo, {Size = UDim2.new(0.65, 0,0.22, 0)
local tweenLeave = TweenService:Create(button, tInfo, {Size = UDim2.new(0.63, 0,0.204, 0)
button.MouseEnter:Connect(function()
tweenEnter:Play()
end)
button.MouseLeave:Connect(function()
tweenLeave:Play()
end)
The error is above local
yea i see
local tweenEnter = TweenService:Create(button, tInfo, {Size = UDim2.new(0.65, 0,0.22, 0)})
local tweenLeave = TweenService:Create(button, tInfo, {Size = UDim2.new(0.63, 0,0.204, 0)})
This should fix it
How tf you didnt copy ")}" ???

First I though it was my typo...
It's because the code probably doesn't know wtf you are referring to as the "button"
look
@cerulean jetty already fixed
wait
join general 1 rq
ssing on my microwave
cuz my pc is making toast
but look
ples
you can see
You also need to change position
@cerulean jetty wym
yeah
Use a UIListLayout
alr lemme see
works?
Idk we can't see explorer and properties
how to show screen
bruh
hb now
Yea, you just need to add a little bit more to X axe
wait
ye
just play with the values now
** You are now Level 6! **
button.MouseButton1Click:Connect(function()
print("click")
end)
where would I add it

yes
Can you send whole sentences please you keep reminding me of my dumbass airhead classmate who breaks up his sentences into multiple messages in the fucking class whatsapp gc and it's so goddamn annoying
literally anywhere
ok
whatsapp gc?
he is screensharing btw
never heard of anyone doing that in my school
In your fucking tax form
got it
when I hover
nvm
bro wtf
my msgs so slow
anyways thanks so much
I am stupid
For the ragdoll script I would add a
Character.Head.CanCollide = on
or something like that for each part
ok
I think we made it so the head isn't collided
he made it
no idea tf he did
lemme check
I thought I was going insane but when I was making a ragdoll script I was like why tf can't the head collide
You have to type that in somewhere
Don't copy and paste it because I'm 40% certain it would work
lol
let me just show the script
ragdoll one
I'll just send you mine
Torn from my game that I won't finish because I was way too ambitious
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
hum.BreakJointsOnDeath = false
hum.Died:Connect(function()
local joints = char:GetDescendants()
for _,joint in pairs(joints) do
if joint:isA("Motor6D") then
local socket = Instance.new("BallSocketConstraint", joint.Parent)
local a0 = Instance.new("Attachment")
local a1 = Instance.new("Attachment")
socket.Attachment0 = a0
socket.Attachment1 = a1
a0.Parent = joint.Part0
a1.Parent = joint.Part1
a0.CFrame = joint.C0
a1.CFrame = joint.C1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
joint:Destroy()
end
end
end)```
what was ur game about
GTA online clone lmao
It's a cool game as it is with a working heist but I wouldn't release it
a direct 1-1 copy
oh
GTA online sucks ass fr fr
Lemme plug my laptop in and find the code real quick
check dm
I grinded to get the anti air missile launcher to fend off against dipshits riding those flying motorcycles, once I thought I had an unsuspecting predator ready to experience karma the missile missed by a mile because the tracking on it sucks ass
what..
I was expecting an epic comeback and all I got was a crappy overpriced firework show and a missile of their own to my face
Exactly, I don't understand the game either