#need help with tweenservice or something
1 messages · Page 1 of 1 (latest)
this is a different scripting language ahsl but its just luau modified once again 🤦♂️
and this time the dev disabled getservice
so i cant use that
now i need help
im trying to get it to fade in from the right once i press f2
local TweenService = game.TweenService
local localplr = game.Players.LocalPlayer
-- Wait for PlayerGui
while not localplr or not localplr.PlayerGui do
task.wait()
localplr = game.Players.LocalPlayer
end
local panelRight = localplr.PlayerGui:WaitForChild("AHSL-Panel2")
local tweenInfo = TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local visible = panelRight.Visible
panelRight.BackgroundTransparency = visible and 0 or 1
local function fadeIn()
panelRight.Visible = true
local tween = TweenService:Create(panelRight, tweenInfo, {BackgroundTransparency = 0})
tween:Play()
tween.Completed:Wait()
visible = true
end
local function fadeOut()
local tween = TweenService:Create(panelRight, tweenInfo, {BackgroundTransparency = 1})
tween:Play()
tween.Completed:Wait()
panelRight.Visible = false
visible = false
end
BindingService.BindPress(Enum.KeyCode.F2, function()
if visible then
fadeOut()
else
fadeIn()
end
end)
thing is, this is a custom scripting language, similar to lua, and the help page even says go to roblox documentation
(which i tried)
don't use a custom scripting language?
what the fuck is this
brother
this variable wont work
also why use a custom scripting language
seems a bit
useless
its in a game
the game lets you create a game inside a game
for example
it uses its own services
its not called tweenservice its called "Tween"
this is what i get when i run "print(Tween)
this was not what scripting help was made for