#Need help plsss
187 messages · Page 1 of 1 (latest)
so i have this morph
and theres a mic model in it
i want it so then when im in that morph a button shows
so then i could hide or show the mic
make an intvalue in the player called morph or character then do if that value == character do this
** You are now Level 3! **
huh ðŸ˜
so say
This or you could just make the button show at the same time when you apply the morph
they want it to be with that specific morph tho
Exactly, if you morph into that specific morph, you should just make it so that the button is visible at the same time as well
ig
Do you want others to see the button or do you want only yourself to see the button
could yall enter my game and make it for me pls ðŸ˜
** You are now Level 1! **
Because if you want only yourself to see the button then I recommend doing what the other guy said
im too lazy
just send a script
only myself aka the morph
yea then thats veri simple
is the morph handled by a server or client script ?
if it's the server you are gonna need to use a remote event
local button = game.Players.LocalPlayer.PlayerGui -- put your button
where do i put this code at
I think you would still need a remote event either way even if you wanted it to be local sided because you still need to make a check if you changed into that morph in order to make the button visible
then just do
local mic = -- ur mic path
button.MouseButton1Click:Connect(function()
if mic.Transperncy == 0 then
mic.Transperency = 1
else
mic.Transperency = 0
end
end
Oh wait
Nevermind
I misunderstood what you said
i don't think morph work properly on the client so yeah handle the morph on server then fire a RemoteEvent to the client so he sees the GUIs
wtf just happend ðŸ˜
Same I don't see what's wrong here...
maybe a before/after would make it more clear
properties ?
no
URMM
GURL
IML
OML
MY MIND IS EVERYWHERE RN I caNT THINK
nvm its fixed
urmm ok
so
what was the provlem
what i wanna do is
can you just send the explorer with the important objects unfolded
so i can just write it for you
my morphs are in the replicated storage
kk
the button that trigger the morph too, if any, and the GUIs
yes
heres the thing
yes?
that works
yes
is it supposed to be used with left click ? or just the GUI
cuz left click wont work if it's a model
so when you morph do you reset the humanoiddescription?
gui
whats that ðŸ˜
** You are now Level 2! **
send the morph script eq
cus what ik is
rq
you should clone the model and set player.Character to the new model
theres few morphs urmm script im just gonna send a file so then yk how it works
then for the GUI you can use PropertyChangedSignal("Character")
send 1
js send 1 of the morph scripts
kk
i dont like opening files from strangers
-- 2. Pls parent 'CharacterSelection' to 'ServerScriptService'.
-- 3. pls parent 'CharacterSelection' to 'StarterGui'.
these 2 conflicting
it's a rbx file dw
k
only work if you import on roblox
so does CharacterSelection goes to ServerScriptService or StarterGui ?
theres a the vid so... yea loll
character selection the screengui goes to startergui
while the script goes to serverscript
-- Instructions:
-- 1. Pls parent 'Characters' and 'CharacterEvent' to 'ReplicatedStorage'.
-- 2. Pls parent 'CharacterSelection' to 'ServerScriptService'.
-- 3. pls parent 'CharacterSelection' to 'StarterGui'.
-- Lastly parent your rigs/moprhs to 'Characters'.
-- The others('Model' & 'Part') can be parent to 'Workspace'
oh hadn't even noticed there was 2 lol
oh
make another remote called visabilityrem or whatever you want
kk
so like when you click on mic the mic dissapear/reappear ?
but where do i add that
repstorage
yupp
wait]
WAIT
oh
alright i'll try the morph and make a script for ya
i rllyy appreciate' yall for helping me
k
omgg tyy babess
byee yalll
<3
here
if its a gui use rem event and if its a model or part use a clickdetector
alright it's done, i'll send you the new scripts
also it only work with Billie, if you rename the character it wont work, it wont work with others characters either
the character selection script
local Characters = game.ReplicatedStorage:WaitForChild("Characters")
game.ReplicatedStorage:WaitForChild("CharacterEvent").OnServerEvent:Connect(function(player, chosenCharacter)
if Characters:FindFirstChild(chosenCharacter) then
local newChar = Characters:FindFirstChild(chosenCharacter):Clone()
local plrChar = player.Character
newChar.PrimaryPart = newChar.HumanoidRootPart
newChar:SetPrimaryPartCFrame(plrChar.PrimaryPart.CFrame)
newChar.Name = player.Name
if plrChar:FindFirstChild("Animate") and not newChar:FindFirstChild("Animate") then
plrChar.Animate:Clone().Parent = newChar
end
if plrChar:FindFirstChild("Health") and not newChar:FindFirstChild("Health") then
plrChar.Health:Clone().Parent = newChar
end
player.Character = newChar
local rootPart = newChar:FindFirstChild("HumanoidRootPart")
local plrRoot = player.Character:FindFirstChild("HumanoidRootPart")
if rootPart and plrRoot then
rootPart.CFrame = plrRoot.CFrame
end
newChar.Parent = game.Workspace
for i, part in pairs(newChar:GetDescendants()) do
if part:IsA("BasePart") then
part.Anchored = false
end
end
game.ReplicatedStorage:FindFirstChild("HIde/Show mic").OnServerEvent:Connect(function()
for i, part:Part in newChar:FindFirstChild("SKM5000"):GetChildren() do
if part.Transparency == 1 then
part.Transparency = 0
else
part.Transparency = 1
end
end
end)
end
end)
the local script is too long i'll divide it in 2
for i, character in pairs(Characters:GetChildren()) do
TotalCharacters += 1
if TotalCharacters >= 3 then
script.Parent.Characters.ScrollingEnabled = true
script.Parent.Characters.ScrollBarImageTransparency = 0
end
local CharacterFrame = script.CharacterFrame:Clone()
CharacterFrame.CharName.Text = character.Name
local clonecharacter = character:Clone()
--clonecharacter.WorldPivot = CFrame.new(0, -0.8, -5.5, -0.9, 0, 0.2, 0, 1, 0, -0.2, 0, -0.9)
clonecharacter.Parent = CharacterFrame
local RandomColorPart = Instance.new("Part")
RandomColorPart.BrickColor = BrickColor.Random()
CharacterFrame.Choose.BackgroundColor3 = RandomColorPart.Color
RandomColorPart:Destroy()
if clonecharacter.PrimaryPart then
clonecharacter:SetPrimaryPartCFrame(CFrame.new(0, -0.8, -5.5, -0.9, 0, 0.2, 0, 1, 0, -0.2, 0, -0.9))
else
if clonecharacter:FindFirstChild("HumanoidRootPart") or clonecharacter:FindFirstChild("Torso") then
if clonecharacter:FindFirstChild("HumanoidRootPart") then
clonecharacter.HumanoidRootPart.CFrame = CFrame.new(0, -0.8, -5.5, -0.9, 0, 0.2, 0, 1, 0, -0.2, 0, -0.9)
else
clonecharacter.Torso.CFrame = CFrame.new(0, -0.8, -5.5, -0.9, 0, 0.2, 0, 1, 0, -0.2, 0, -0.9)
end
else
CharacterFrame.Visible = false
end
end
CharacterFrame.Choose.MouseButton1Click:Connect(function()
if CharacterFrame.Choose.X.Text == "Selected" then
script.Parent:TweenPosition(UDim2.new(0.228, 0,1, 0), "Out", "Quad", 0.2)
script.Parent.Characters.CanvasPosition = Vector2.new(0, 0)
return
end
game.ReplicatedStorage.CharacterEvent:FireServer(character.Name)
if character.Name == "Billie" then
task.wait(2.5)
Player.PlayerGui.Mic.Enabled = true
Player.PlayerGui.Mic.TextButton.MouseButton1Down:Connect(function()
game.ReplicatedStorage:FindFirstChild("HIde/Show mic"):FireServer()
end)
end
script.Parent:TweenPosition(UDim2.new(0.228, 0,1, 0), "Out", "Quad", 0.2)
script.Parent.Characters.CanvasPosition = Vector2.new(0, 0)
for i, characterfr in pairs(script.Parent.Characters:GetChildren()) do
if characterfr:IsA("ViewportFrame") then
characterfr.Choose.X.Text = "Select"
end
end
CharacterFrame.Choose.X.Text = "Selected"
end)
CharacterFrame.Parent = script.Parent.Characters
end
script.Parent.ExitButton.MouseButton1Click:Connect(function()
script.Parent:TweenPosition(UDim2.new(0.228, 0,1, 0), "Out", "Quad", 0.2)
script.Parent.Characters.CanvasPosition = Vector2.new(0, 0)
end)
script.Parent.Parent.Character.MouseButton1Click:Connect(function()
if script.Parent.Position == UDim2.new(0.228, 0,0.2, 0) then
script.Parent:TweenPosition(UDim2.new(0.228, 0,1, 0), "Out", "Quad", 0.2)
else
script.Parent:TweenPosition(UDim2.new(0.228, 0,0.2, 0), "Out", "Quad", 0.2)
end
end)
they follow each others, also, i didn't include the 5 first lines so don't replace these
i added a ScreenGUi and a TextButton in StarterGui too, you need to add them or it wont work
this all you need, make sure you read my texts correctly so you don't mess it up, you just gonna have to make the ScreenGUI the way you want it to be, and place it where you want
if there are any bugs tell me
wowzers
** You are now Level 4! **
thats coal
not sure i explained well, if you have trouble understanding tag me and i'll explain better
TYYYY
@twin compass i cant click the morph button ðŸ˜
Send me the place as a file i'll check later
At school rn
Maybe i just forgot a connection in the new local script
send it again, i can't download it for some reasons
it's weird tho, the script that handle morphs isn't one i modified
make sure the ShowGuiOnTouch script is this
local part = script.Parent
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local function onTouch(other)
local character = other.Parent
local player = Players:GetPlayerFromCharacter(character)
if player then
local playerGui = player:FindFirstChildOfClass("PlayerGui")
if playerGui then
local characterSelectionGui = playerGui:FindFirstChild("CharacterSelection")
if characterSelectionGui then
local characterButton = characterSelectionGui:FindFirstChild("Character")
if characterButton then
characterButton.Visible = true
end
else
-- Clone the GUI from StarterGui if it doesn't exist in PlayerGui
local starterCharacterSelectionGui = StarterGui:FindFirstChild("CharacterSelection")
if starterCharacterSelectionGui then
local clonedGui = starterCharacterSelectionGui:Clone()
clonedGui.Parent = playerGui
local characterButton = clonedGui:FindFirstChild("Character")
if characterButton then
characterButton.Visible = true
end
end
end
end
end
end
part.Touched:Connect(onTouch)
and the mic ScreenGui object is supposed to be disabled (enabled property = false)
@cursive flame
NVM it work now
you forgot these lines
add this
local Player:Player = game.Players.LocalPlayer
local TweenService = game:GetService("TweenService")
local Marketplace = game:GetService("MarketplaceService")
local Characters = game.ReplicatedStorage:WaitForChild("Characters")
local TotalCharacters = 0
at the top of the local script
i also added a RemoteEvent called Hide/Show mic in replicated storage
and made a small typo in the local script and CharacterSelection script, press CTRL + F and type "HIde" then change the result to "Hide"
the i was a I (capital) but it isn't supposed to be
i explain like ass
dww i understood
loll
so.. everything works EXPET
its not hiding the mic ðŸ˜
YALL @here
** You are now Level 3! **