Localscript:
workspace.Watermelon.Watermelon.Spill.Touched:connect(function(h)
if h.Parent.Name == "Large Water w/ Ice" or h.Parent.Name == "Medium Water w/ Ice" or h.Parent.Name == "Small Water w/ Ice" then
a = h.Parent.Name
if string.find(a, 'Small') then
a = 'Small'
elseif string.find(a, 'Medium') then
a = 'Medium'
elseif string.find(a, 'Large') then
a = 'Large'
end
game.ReplicatedStorage.Fill:FireServer('Watermelon water w/ Ice', game.Players.LocalPlayer.Name, a, h.Parent.Name)
end
end)
Server Script:
game.ReplicatedStorage.Fill.OnServerEvent:connect(function(a, fill, plr, s, o)
if o == nil then
game.Players[plr].Character[s].Name = s.." "..fill
else
game.Players[plr].Character[o].Name = s.." "..fill
end
if workspace:FindFirstChild(fill) then
workspace[fill][fill].Spill.Transparency = 0.5
wait(2)
workspace[fill][fill].Spill.Transparency = 1
end
end)
I don't know what's wrong with it... (Yes it's FE)
